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 :
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
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