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 asp.net 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 form...how 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">
    </cc1:ToolkitScriptManager>
    <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"
        Format="dd/MM/yyyy">
    </cc1:CalendarExtender>

 

I agree, here is the link: https://www.e-iceblue.com/Introduce/spire-office-for-net-free.html