Hi
I am trying to pass value of textbox from Default.aspx to Default2.aspx through a link. I am using VS2008.
Here is my Default.aspx code
<body>
<form id="form1" method="get" runat="server">
<asp:Label ID="Label2" runat="server" Text="Name"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<br />
<br />
<asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<br />
<br />
[B]<a href ="Default2.aspx?&name=<% =TextBox1.Text%>" >Link</a>[/B] </form>
</body>
</html>
And I am trying to use this code to display the value on Default2.aspx
<body>
<form id="form1" runat="server">
<center>
<%
string Name = Request.QueryString["name"];
%>
<h1>Happy Birthday [B]<% Response.Write(Name); %[/B]></h1>
<h3>May the next
years be as good!</h3>
</center>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</form>
</body>
Can any one help me displaying the name of user on Default.aspx.
Thanx to all in advance
Regards