Click to See Complete Forum and Search --> : switching forms in ASP.net


Vanes
February 8th, 2002, 10:42 AM
How can I pass through (a) parameter-value(s) when switching via a hyperlink from one form to another? (I'm learning ASP.NET / C# in dotnet)

Vanes

ravikattamuri
February 19th, 2002, 01:49 AM
Solution 1:
Put the variable in a session object in form 1 and access those variable from the session in form2. This is more secured but session object will be heavy.

Soution2:
Pass the values through urls like

URL="//page2.aspx?val1=" + iCount (iCount is a variable here).

Cheers,
Ravi.