ASP.Net/Request/Variables Passing
Pass varaible between pages (C#)
<source lang="csharp">
<%@ Page Language="c#" %> <html>
<body> <%; string Name = "Sniff"; string Age = "23"; %> <a href="birthday2.aspx?name=<% Response.Write(Name); %>&age=<% Response.Write(Age); %>">Click here</a> </body>
</html> <%-- <%@ Page Language="c#" %> <html>
<body>
<% string Name = Request.QueryString["Name"]; string Age = Request.QueryString["Age"]; %>
Happy Birthday <% Response.Write(Name); %>
May the next <% Response.Write(Age); %> years be as good!
</body>
</html> --%>
</source>