Check out this article,
http://www.microsoft.com/india/msdn/...ndarinASP.aspx
--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com
"Mike" <no****@nospam.com> wrote in message news:Ob**************@tk2msftngp13.phx.gbl...
I debugged, but the Page_Load event is not fired.
Does the script below change the element of the document, but not the one of the form? Or are these two elements the same? Sorry, I am new to all these web stuff...
Mike
"Dale" <da************@msndotcomNot.Net> wrote in message news:uy**************@TK2MSFTNGP10.phx.gbl...
Typically, that is caused by assigning the value in your page init or page
load without regard to IsPostBack. So you're re-initializing the label
before you read the value on postback. Try stepping through your code and
see if you find that happening.
Dale
"Mike" <no****@nospam.com> wrote in message
news:#R**************@TK2MSFTNGP11.phx.gbl...
It is a label.
"PJ" <pj***@hotmail.com> wrote in message
news:#f**************@tk2msftngp13.phx.gbl...
It would be helpful if you told us what type "control" is.
"Mike" <no****@nospam.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
Hi,
I have a form with some dynamic controls. I then open a popup calendar
and set the selected date back to the "parent" form using this statement:
string script = "<script>window.opener.document.getElementById ('" +
control.Value + "').innerText = '";
script += myCalendar.SelectedDate.ToString("dd/MM/yyyy") + "'";
script += ";self.close()" ;
script += "</script>";
RegisterClientScriptBlock("test", script);
The problem I am having is that when later accessing the control, the
value of that control is still empty. But on the page, the new value is
shown.
Does anyone have any idea on what could be wrong?
Thanks
Mike
--
Michael