pass variable between ASP.NET pages
-
Is there any way to pass variables between asp pages other than the query string? something like what i am doing in WinForm:
form1 myform = news form1();
form1.myvar = "abc123";what i want is to pass the variale but i dont want it to be shown in the url...
-
Is there any way to pass variables between asp pages other than the query string? something like what i am doing in WinForm:
form1 myform = news form1();
form1.myvar = "abc123";what i want is to pass the variale but i dont want it to be shown in the url...
You are asking an awful lot of questions (here and in Database) which with a little bit of research you could answer yourself. The quesiton above is basic HTML stuff. Enough now. Do some work yourself.
-
Is there any way to pass variables between asp pages other than the query string? something like what i am doing in WinForm:
form1 myform = news form1();
form1.myvar = "abc123";what i want is to pass the variale but i dont want it to be shown in the url...
Check this article out ... Manage ASP.NET Session Variables using the Facade Design Pattern[^]
-
Check this article out ... Manage ASP.NET Session Variables using the Facade Design Pattern[^]
Better to use POST in the form's ACTION property to just pass values from one page to another.
-
Is there any way to pass variables between asp pages other than the query string? something like what i am doing in WinForm:
form1 myform = news form1();
form1.myvar = "abc123";what i want is to pass the variale but i dont want it to be shown in the url...
- Get HTTP POST information from the source page.
- Use session state.
- Create public properties in the source page and access the property values in the target page.
- Get control information in the target page from controls in the source page.
See MSDN[^] for more details on each.
Regards, Hiren. Microsoft Dynamics CRM
My Recent Article: - Way to know which control have raised PostBack[^]