I need to add event handler at client side to a RadDateInput control.
The above javascript can be fired when the page is loaded but $find cannot find the control. However the script can be executed successfully after the page is completely loaded.
Where should I "call" my javascript if not using RegisterStartupScript?
Best regards
Edwin
string script = |
string.Format("$find('{0}').add_valueChanged({1});", myDateInput.ClientID, myHandlerFunction); |
ScriptManager.RegisterStartupScript( |
this, typeof(DateInput), "clientChange", |
script, |
true); |
The above javascript can be fired when the page is loaded but $find cannot find the control. However the script can be executed successfully after the page is completely loaded.
Where should I "call" my javascript if not using RegisterStartupScript?
Best regards
Edwin