I am using a calendar control to select date in my form, once I select a date, the selected date string will be in the textbox, however, everytime when I made a selection, there is a postback to the server. How can I do the select date without postback to the
server?
The Calendar control included with ASP.NET uses postbacks only. If you added Microsoft ASP.NET AJAX to the page and put the calendar into an UpdatePanel, it can reduce the appearance of postbacks by using callbacks. But it still makes a trip to the server
for each click on a date or month.
Many people have created replacements to the Calendar control that uses javascript to do the work. I am the author of one, in "Peter's Date Package". You can locate others in these sites:
the Control Gallery (here under Resources), www.123aspx.com, and
www.411asp.net.
--- Peter Blum
Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
www.PeterBlum.com
Marked as answer by jessjing on Nov 09, 2006 12:01 AM
publilcmoney
Member
42 Points
18 Posts
Calendar control without postback
Nov 08, 2006 07:33 PM|LINK
PLBlum
All-Star
30409 Points
5347 Posts
MVP
Re: Calendar control without postback
Nov 08, 2006 08:54 PM|LINK
The Calendar control included with ASP.NET uses postbacks only. If you added Microsoft ASP.NET AJAX to the page and put the calendar into an UpdatePanel, it can reduce the appearance of postbacks by using callbacks. But it still makes a trip to the server for each click on a date or month.
Many people have created replacements to the Calendar control that uses javascript to do the work. I am the author of one, in "Peter's Date Package". You can locate others in these sites: the Control Gallery (here under Resources), www.123aspx.com, and www.411asp.net.
Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
www.PeterBlum.com
BasicDatePic...
Contributor
2037 Points
406 Posts
Re: Calendar control without postback
Nov 09, 2006 06:19 PM|LINK
Hi publilcmoney,
We have a couple client-side JavaScript date pickers that your might be interested in. BDPLite (Free) and BasicDatePicker.
The date pickers will not post back to the server when you scroll through the months.
There is a free trial for download at http://www.basicdatepicker.com/download/
Hope this helps
TextBox javascript calendar popup datepicker datetime date picker
Basic Date Picker - A Quicker Picker(TM) - ASP.NET Calendar, Date and Time Web Controls