J
JJ_377
I want a JavaScript validation function to fire on an ASP.NET textbox's
change event.
Here's what I've been trying and it is not working. The following added
in the webform's page load event:
txtBirthdate.Attributes.Add("txtBirthdate_TextChanged",
"MyJSFunction()")
txtBirthdate.Attributes.Add("TextChanged", "MyJSFunction()")
txtBirthdate.Attributes.Add("onchange", "MyJSFunction()")
txtBirthdate.Attributes.Add("onChange", "MyJSFunction()")
I've been usual a simliar construct sucessfully with .net hyperlinks:
hlSSN.Attributes.Add("onclick",
"openMessageWindow('../Information.htm')")
Thank you very much.
change event.
Here's what I've been trying and it is not working. The following added
in the webform's page load event:
txtBirthdate.Attributes.Add("txtBirthdate_TextChanged",
"MyJSFunction()")
txtBirthdate.Attributes.Add("TextChanged", "MyJSFunction()")
txtBirthdate.Attributes.Add("onchange", "MyJSFunction()")
txtBirthdate.Attributes.Add("onChange", "MyJSFunction()")
I've been usual a simliar construct sucessfully with .net hyperlinks:
hlSSN.Attributes.Add("onclick",
"openMessageWindow('../Information.htm')")
Thank you very much.