Pages

Saturday, October 4, 2008

Pass Parameters in ASP.NET

I'm trying to pass information between pages. I'm trying to avoid using
QueryString and Session variables. so what is the way to pass the parameters from one page to another using Server.Transfer???

Can i use context or viewstate? which is better??

This is common question in various forums. My answer is

You can't send viewstate between pages. context items are sent as part of the server.transfer. After the server.transfer, context items are disposed.

1 comment: