Hi Everyone

I have two aspx pages that updates two values in a database.

I have an update button called Button1.

Button1 in the first page redirects to the second aspx page.

On the second page i want to select a value and then redirect to the first page.

How do i then get the value that is returned from the second Page? and the use it in Button1's method?

Response.Redirect("Pagetwo.aspx");
Label1.Text = Request.QueryString["sp"];

Hi Everyone

I have two aspx pages that updates two values in a database.

I have an update button called Button1.

Button1 in the first page redirects to the second aspx page.

On the second page i want to select a value and then redirect to the first page.

How do i then get the value that is returned from the second Page? and the use it in Button1's method?

Response.Redirect("Pagetwo.aspx");
Label1.Text = Request.QueryString["sp"];

Hi,

You can do this easily using JavaScript !

window.open('PageTwo.aspx')

Then suppose in the child window the user has selected a value in Dropdown and then clicked the Submit button. Now in the submit button eventhandler, call the a function in the parent window (firstpage.aspx) using syntax :-

window.opener.functionName('selectedvalueindropdown')

The selected value also gets passed to parent window. Now inside the parent windows function set the Label1 to parameter it received.

BYE