Passing Variables - ASP.NET 2.0 WOES!!

0 views
Skip to first unread message

jpw

unread,
Aug 27, 2008, 4:38:48 PM8/27/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I want to pass vars to other web forms. I don't want to use query
strings or cookies. I'd lke to use Session variables but have had all
kind trouble. I *was* using the postback property of the button, but
Session var was empty when i checked on the following page. I read
that I should use the server.transfer command instead. This retained
the values but then threw a nasty error:yet another error message:
"Sys.WebForms.PageRequestManagerParserErrorException..." I read that
I should turn of evenvalidation for the page, but that doesn't sound
like a very wise fix to me.

What are you recmd ways of passing vars between 2.0 ajax enabled web
forms?

Thanks,
jpw

AT

unread,
Aug 28, 2008, 11:28:06 AM8/28/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
not the best idea i would recommend .. but have you considered cross
page postback ??

AT

Niraj Ranka

unread,
Aug 28, 2008, 5:42:33 AM8/28/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
http://msdn.microsoft.com/en-us/library/system.web.ui.page.previouspage.aspx

I think this may work out in your situation.

Niraj
Reply all
Reply to author
Forward
0 new messages