You must Sign In to post a response.
  • Category: ASP.NET

    How to create own datepickar control in

    I want to create my own datepickar control(or dll),so can use it another project.How to create that?
  • #765127
    Please go through following URL's, here datepicker control is added to a page and that page is referred in another project:
    Hope it helps.
    Shashikant Gurav

  • #765133
    Hi Pinky,

    If you want to create your custom control for maintain the unique style for your project always suggest to create your own custom controls, in your example you want to create date picker with your own style then refer below links here they provide some sample custom datepicker controls.

    Give respect to your work, Instead of trying to impress your boss.

    Blog :

  • #765136
    There is inbuilt datetimepicker control exist in, ajax and JQuery you can simple use them.
    They are light weight and tested by millions of developer.
    Why you want some customized control ? look at below link it is a good datetime picker in JQuery
    Jquery datetime picker, is tied to a standard form input field. Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay. Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close

    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #765146
    Lot of date time picker are available. If you like to use any one of the date picker to your entire application. you can create the user control.

    1. Create user control.
    2. Design the date picker.
    3. Place all the code related to the date picker. Ex. If you want to use JQuery date picker place the code in the user control. and design the DP based on your requirement.
    4. You can handle the event by creating the delicate.
    5. Now you can use this Datepicker user control anywhere in your application.

    By Nathan
    Direction is important than speed

  • #765154
    Please Explain all the dot net techniques in detail.

  • #765157
    Thanks for this forum. This questions and answer is needed for me. Thank you for useful information.
    <a href="">Think IT Training in Chennai</a>

  • #768030
    Can you please explain the concept well.

  • #768043

    You can create a webusercontrol to create your own calendar control. Follow the below steps.
    1.Create new project, add new item->select webusercontrol template
    2.Name it as mycalender.ascx write below code

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mycalender.ascx.cs" Inherits="aspdemos.mycalender" %>
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <span><asp:ImageButton ID="btn_calender" ImageUrl="~/Content/DatePickerIcon.jpg" runat="server" OnClick="btn_calender_Click" style="height: 21px" />
    <asp:Calendar ID="Calendar1" runat="server" OnSelectionChanged="Calendar1_SelectionChanged" Visible="False"></asp:Calendar></span>

    3.Open mycalender.ascx.cs and write below code.

    namespace aspdemos
    public partial class d : System.Web.UI.UserControl
    protected void Page_Load(object sender, EventArgs e)

    protected void Calendar1_SelectionChanged(object sender, EventArgs e)
    TextBox1.Text = Calendar1.SelectedDate.ToString();
    Calendar1.Visible = false;
    protected void btn_calender_Click(object sender, ImageClickEventArgs e)
    if (Calendar1.Visible == true)
    Calendar1.Visible = false;
    Calendar1.Visible = true;

    4.Now add new aspx page, name it as datepicker.aspx.
    Drag and drop mycalender.ascx in to the datepicker.aspx like below.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="datepicker.aspx.cs" Inherits="aspdemos.datepicker" %>

    <%@ Register Src="~/mycalender.ascx" TagPrefix="uc1" TagName="d" %>
    <!DOCTYPE html>
    <html xmlns="">
    <head runat="server">
    <form id="form1" runat="server">
    <uc1:mycalender runat="server" id="d" />

    Find the below attachment.

    Sridhar Thota.
    Editor: DNS Forum.

    Delete Attachment

  • #768077
    I can send the url please check it because in this website all introduction are given by step by step.and it must require that you understand cleary .just go thorugh this url.

    try to solve you problem
    hope it help you
    thank you

  • Sign In to post your comments