Hi experts
I got a popup in which the user can enter some data. After clicking a submit-button in the popup the popup is closed and the data is written in textboxes in the parentpage.
First off,
it all worked fine in .Net 1.1 but since migration to 2.0 it does not anymore :-(
The reason is this:
The textboxes on the parentpage are readonly. If I make them writable all works fine, but that's not how it is supposed to be.
The Javascript which is fired when the user clicks the submit-button on the popup writes the data to the textboxes and enforces a postback:
Code:
string script = String.Concat( "<script>",
"window.opener.document.forms[0].", this.textBox1_ClientID.Text, ".value = '", value1, "';",
"window.opener.document.forms[0].", this.textbox2_ClientID.Text, ".value = '", value2, "';",
"window.opener.document.forms[0].submit();\n",
"self.close();",
"</script>");
The data is actually written to the textboxes (I can see the changed value), but after the postback the old values are back in the textboxes.
Why does this problem appear and how can I solve it?
I tried to replace the textboxes with labels. The labels are rendered as <span> tags. I was not successfull in setting the value or innerTag for the span.
I am running out of ideas, unfortunately storing the data in a session is not a option.
Your help is much appreciated!
JJ