Saturday, March 24, 2012

pass variable between webpage

I want to ask what is the best way to pass variable between asp.net web page
s, and user controls , any examples?Hi Dollar,
There are various ways in which ASP.NET helps you to pass information
from one page to another, it basically depends on your application.
In general, the applications use Session state to pass variables.
You can refer to the following link for complete details:
[State Management Recommendations]
http://msdn.microsoft.com/library/d...StateOption.asp
As for user controls, you can have public properties for the user control
which can be accessed by any page and also they will retain their values in
between
server round trips.
HTH
Mona[Grapecity]
"dollar" <dollar.1pp11p@.mail.codecomments.com> wrote in message
news:dollar.1pp11p@.mail.codecomments.com...
> I want to ask what is the best way to pass variable between asp.net web
> pages, and user controls , any examples?
>
> --
> dollar
> ---
> Posted via http://www.codecomments.com
> ---
>

0 comments:

Post a Comment