Date Picker - create programatically

2 posts, 0 answers
  1. Bruce
    Bruce avatar
    33 posts
    Member since:
    Oct 2006

    Posted 22 Jan 2008 Link to this post

    How do I create a date picker in VB code (without having one explicitly defined on a form).

    Thanks
  2. Leon
    Leon avatar
    373 posts
    Member since:
    Apr 2007

    Posted 23 Jan 2008 Link to this post

    That's an easy task, Bruce.

        Protected Sub Page_Load(ByVal sender As ObjectByVal As EventArgs)
            
    Dim picker As RadDatePicker = New RadDatePicker
            PlaceHolder1.Controls.Add(picker)
        
    End Sub

    By the way, here is a good translator:

    http://www.carlosag.net/Tools/CodeTranslator/Default.aspx

    -Leon
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top