Click to See Complete Forum and Search --> : passing value to next page after completing some task on current page:


sekharyala
02-01-2007, 12:46 PM
In a web form (test.aspx) i hvae 2 textbox server controls and a submit button(this is also sever control).I have written in click event of the button VB code to update 2 values in text box into database.its working fine.But after updating the data i want control to redirect to anoter page test1.aspx immidiatly with some value to be passed in query string.How to achive this.Please let me know. Some one please help

regards
sekhar

Chitra Xavier
02-02-2007, 02:53 AM
Hi...

For test.aspx in button click event use HTTP GET() as
Response.Redirect("test1.aspx?Name=" +
this.txtBox1.Text + "&LastName=" +
this.txtBox2.Text);

to get the values in url use
str1=Request.QueryString["Name"];
str2=Request.QueryString["LastName"];

sekharyala
02-02-2007, 05:26 AM
if I want to pass the values througt post method to next page from asp.net server form what to do?