Mega Code Archive

 
Categories / ASP.Net / Session Cookie
 

Pass variables with & sign (VB net)

<%@ Page Language="VB" %> <html>   <body>     <%     Dim Name As String     Dim Age As String     Age = 23     Name = "Sniff & Jack"     %>     <a href="birthday2.aspx?age=<% Response.Write(Age) %>&name=<%     Response.Write(Name)%>">click here</a>   </body> </html> <%-- <%@ Page Language="VB" %> <html>   <body>     <center>       <%       Dim Name As String       Dim Age As String       Name = Request.QueryString("Name")       Age = Request.QueryString("Age")       %>       <h1>Happy Birthday <% Response.Write(Name) %></h1>       <h3>May the next       <% Response.Write(Age) %>       years be as good!</h3>     </center>   </body> </html> --%>