Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need asp.net (vb) code example for javascript datepicker

Status
Not open for further replies.

Dave14850

Programmer
Aug 1, 2001
3
US
i am pretty clueless when it comes to incorporating javascript into an asp.net page. I am trying to use one of the several javascript datepicker / calendar scripts i have found on the web with mixed results. I am using VB.

the datepicker would popup either from a button and fill a text box that I can then access from vb code. or the popup could be triggered when the text box gets the focus. I have been able to use the out of the can aspx calendar but it makes a round trip to the server when a date is clicked. I am trying to avoid that.

is there some kind soul that could post the .aspx code for a page that invokes a javascript datepicker? Most any datepicker would do as long is it is not licensed.

Thanks in advance.
dave
 
the problem is you are mixing server and client code. the server should not care how the user enters a date. only that a value which can be parsed to a date is present in the given form element.

there are 3 date pickers I know of.
jQuery.UI datepicker (which is totally independent of webforms. to the server it appears as a textbox.
($ but a great UI widget for webforms)
MS AJAX Calendar control. (haven't used it as I prefer jquery to ms ajax)

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top