Welcome Guest Search | Active Topics | Sign In | Register

ClientID for DatePicker Control Options
Sunil
Posted: Sunday, January 6, 2008 10:28:32 PM
Rank: Member
Groups: Member

Joined: 1/6/2008
Posts: 13
How to get the ClientID for DatePicket Control

The following code did not worked in JavaScript
var toDate = document.getElementById("<%=dtmToDate.ClientID%>").value;


I Modified the code to

var fromDate = document.getElementById("_eo_" + "<%=dtmFromDate.ClientID%>" + "_picker").value;

It worked.

Can i get the clientID without concatinating "_eo_" and "_picker" values.
eo_support
Posted: Monday, January 7, 2008 5:28:54 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,088
Hi Sunil,

The first form, dtmToDate.ClientID, is correct. However you need to use our client side JavaScript interface, not DHTML interface to interact with our controls. For detailed information on how to use our client side JavaScript interface, open our help file and then "Client API Reference".

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.