Using calender control with image button in ASP.Net

Last Reply on Sep 05, 2013 04:55 AM By Mudassar

Posted on Sep 05, 2013 04:55 AM

I am using with vb for developing a website

I have a registration form in which i need to enter birthdate... m given an icon representing a calender and when the user click on that icon(image button) a calender should pop up and the selected date should be entered in the textbox in dat will i achieve it????

qick help appreciated...

thank-you in advance!!!!

Posted on Sep 05, 2013 04:55 AM

This way


  <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    <asp:TextBox ID="txtDate" runat="server" ReadOnly="true"></asp:TextBox>
    <asp:ImageButton ID="imgThrobber" ImageUrl="images/calendar.png" ImageAlign="Bottom"
        runat="server" />
    <cc1:CalendarExtender ID="Calendar1" PopupButtonID="imgThrobber" runat="server" TargetControlID="txtDate"