0

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"];
2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by sujimon
0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.