Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

popup refresh parent window + adding value

Status
Not open for further replies.

tyris

Programmer
Nov 2, 2000
311
FR
Hi all,
I do have a popup, and when the user clicks the "OK" button, the popup calls a method from the window.opener.

The call works fine.

In the window.opener, i retrieve the parameter passed by the function, and assign it to a hidden input.

Here is my function :

Code:
function refresh(ID)
{
	document.getElementById("<%=TextBox9.ClientID%>").text=ID;
	alert(document.getElementById("<%=TextBox9.ClientID%>").text);
	document.Form1.submit();
}

the alert is ok, and then i submit the form in order to have a postback, to refresh my page.
The problem is that in my postback, i went to retrieve the value of my TextBox, it doesn't work as expected.

In clear in my postback, when i test TextBox9.Text!="" it returns me False !!! I guess it's because i modified the textbox value with javascript.

What method can i use to be able to get on serverside the content of a textbox returned by a popup ???

I'm a bit lost




regards,
Elise
(author of french .NET tutorial like
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top