Welcome Guest Search | Active Topics | Sign In | Register

URGENT: date picker javascript events Options
RAM
Posted: Tuesday, April 8, 2008 9:39:28 AM
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
eo_support
Posted: Tuesday, April 8, 2008 9:55:20 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

This is what you are looking for:

http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.Calendar.ClientSideOnSelect.html

You would do:

DatePicker1.ClientSideOnSelect = "functionToCall";

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.