Click here to Skip to main content
16,018,525 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I want to implement date time picker in my web site.

It runs sucessfully but it doesnt show date which I select in my website.
The code is as given below:
XML
<ASP:TextBox  runat="server" ID="txtDate">;
<asp:Calendar ID="Textbox" runat="server"
 ShowTimeSelector="true"
DateFormat="MM/dd/yyyy hh:mm:ss"
DatePickerMode="true"
 TextBox="txtDate">
<asp:Calendar>    

Please guide me.
Posted
Updated 19-Feb-11 4:27am
v2
Comments
Henry Minute 19-Feb-11 10:43am    
Is this a 3rd-party control?

If it is, you should ask on their site.

The reason I ask is because you appear to be using properties that are not in the Calendar class.

1 solution

Have a look at these to move ahead:
Creating ASP.Net DatePicker using Calendar Control[^]
Creating a Popup Date Picker[^]

Though an old one, have a look at this article too: DateTimePicker Web Control[^]


If you still face issue, post your code of how you are trying to access/check the value selected in the calendar. Probably on some page submit event you must be trying to access it. Just DEBUG and see if it's getting reset anywhere before reaching to the event.
 
Share this answer
 
Comments
Espen Harlinn 19-Feb-11 10:46am    
Good links :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900