Anyone help me Javascript datepicker control?

Posted by Iluvdotnetfunda under JavaScript on 4/18/2012 | Points: 10 | Views : 905 | Status : [Member] | Replies : 1
Hi Friends,

Please help me in how get javascript datepicker calender with code.
when user click on the image then calender should display and then the selected date in the calender show in the textbox.

Thanks
iluvdotnetfunda




Responses

Posted by: Gsm_Gsv on: 4/18/2012 [Member] Starter | Points: 25

Up
0
Down
Step 1: Download the Ajax control toolkit dll from http://ajaxcontroltoolkit.codeplex.com/
Step 2:Import the dll to toolbox in visual studio
step 3: Now add the calender extender control to your design page.

your code should somewhat look like this

<asp:ImageButton ID="ImgCalendar" runat="server" 

ImageUrl="~/Images/calendar.gif" />
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="YourTextBoxID" PopupButtonID= "ImgCalendar">
</cc1:CalendarExtender>


Hope this will help you

-------
Regards
MADHU

---------------------------------------
Live the life you've dreamed

Regards
MADHU

Iluvdotnetfunda, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response