Rank: Member Groups: Member
Joined: 4/8/2008 Posts: 19
|
How can i add an attribute to the date picker control? All I need to do is call a javascript function on the client side when the date is picked or changed in the date picker text box.
I tried this in the page load method of code behind but did not work
DatePicker1.Attributes.Add("onchange", "javascript:functionToCall();");
Please help me this is urgent ....
Thanks RAM
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi, This is what you are looking for: http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.Calendar.ClientSideOnSelect.htmlYou would do: DatePicker1.ClientSideOnSelect = "functionToCall"; Thanks
|