Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
guys ive a set of controls which are completely in html. so i want to fetch the value of the one textbox to other page's textbox.

i dont wanna use sessions ..

eg
sample1.aspx

<body>
<form id="form1" runat="server">


<asp:TextBox ID="txtData" runat="server">
<input id="txtData1" type="text" runat="server" />



<asp:Button ID="btnHttpPost" runat="server" Text="HTTPPost" PostBackUrl="~/WebForm2.aspx" />

</form>
</body>


sample2.aspx


<body>
<form id="form1" runat="server">



Data is: <%=Request.Form["txtData"] %><asp:Label ID="Label1" runat="server" Text="Label">

<input type="text" id="k" />
Label1= <%=Request.Form["txtData1"] %>

</form>
</body>



so i wanna send values id=txtData from sample1.aspx to sample2.aspx (text box id="k")
Posted
Updated 17-Mar-14 2:48am
v2

<input type="text" id="k" value="<%= Request.Form["txtData"] %>" />
 
Share this answer
 
v2
Comments
kishorebt 17-Mar-14 9:37am    
can we use functions in javascript in sample2 and then assign it to textbox
 
Share this answer
 
Comments
kishorebt 17-Mar-14 9:11am    
All those are used by server side scripting.. i wanted to use it from client side...
RahulMGunjal 19-Mar-14 0:33am    
refer this
http://www.codeproject.com/Articles/23919/Client-Side-State-Management-Objects

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900