English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am in need of a date control to use in asp.net which will be like the DateTimePicker control in vb.

2006-07-02 21:53:07 · 3 answers · asked by jeyaganapathi 1 in Computers & Internet Programming & Design

3 answers

Is this what you need?

DateSelector.ascx

' Get the id of the control rendered on client side
' Very essential for Javascript Calendar scripts to recognize the textbox

Public Function getClientID() As String
Return txt_Date.ClientID()
End Function

' This property sets/gets the calendar date
Public Property CalendarDate() As String
Get
Return txt_Date.Text
End Get
Set(ByVal Value As String)
txt_Date.Text = Value
End Set
End Property

' This Property sets or gets the the label for
' Dateselector user control

Public Property Text() As String
Get
Return lbl_Date.Text
End Get
Set(ByVal Value As String)
lbl_Date.Text = Value
End Set
End Property

2006-07-02 22:00:48 · answer #1 · answered by Joe_Young 6 · 0 0

you can create your own, or you can download a javascript for calendar and use it on your webpages (.aspx)

if wanted to design your own calendar then take a textbox and place a small calendar picture / button near the text box. when the user clicks on it just open a popup window with the .aspx page that contain calendar control, when the user select date from the control just close the popup window, but befor this you have to put the selected date in the text box of main page.

2006-07-02 22:01:14 · answer #2 · answered by Abhishek 3 · 0 0

ASP.NET has the calender control which has date / time capability in it.

2006-07-02 21:56:56 · answer #3 · answered by Abdullah A 1 · 0 0

fedest.com, questions and answers