Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to use the value of textbox1 in Form1.aspx to Form2.aspx. How can i get the value from Form1 to Form2. I don't want to use session and Querystring. Please tell me another procedure like post,action method.Actually i don't know about how to use post,action method.

Ex:
C#
string act = Request.Form["TextBox1"];
if (act == "abc")
{

    Response.Write("abcdefh");
}
else
{
    WebMsgBox.Show("Not read");
}


But it's not working. i can't retrieve value of TextBox1 to this form.

Please help me in this regard.

Thanks in Advance.
Posted
Updated 18-May-11 19:44pm
v2
Comments
Sandeep Mewara 19-May-11 2:17am    
You wanted to know specifically about POST. All you needed was to Google POST method in ASP.NET.

can be easily achieved by cross page posting. Please have a look at the following link

http://msdn.microsoft.com/en-us/library/ms178139.aspx[^]
 
Share this answer
 
You can always go to W3 School[^]

It teaches you basic html. Including FORMS which is the tag you want to learn about post from.
 
Share this answer
 
Comments
rahul dev123 19-May-11 1:49am    
if you do that please give me the solution not a link
 
Share this answer
 

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