Solved

disable autopostback for Calender Control

Posted on 2011-02-28
3
599 Views
Last Modified: 2012-05-11
Iam trying to use System.Web.UI.WebControls.Calender.
But when I select any date , It post backs automatically. Is there any way to avoid this behavior.
(I dont see the usual property AutoPostback which I set to False to avoid this behavior)
I need the selected date only once user submits the form.
0
Comment
Question by:badalpatel
3 Comments
 
LVL 2

Accepted Solution

by:
axtoxic107 earned 500 total points
ID: 34996817
I generally avoid avoid the MS calender control because I find it so hard to work with and style. Have you considered something like the jQuery UI date picker, works as you need and far easier to style after too.

http://jqueryui.com/demos/datepicker/#inline
0
 
LVL 5

Expert Comment

by:roxviper
ID: 34996849
Hi,

Or you can wrap it inside a Update Panel

More info here: http://ajax.net-tutorials.com/controls/updatepanel-control/
0
 
LVL 8

Expert Comment

by:Anurag Agarwal
ID: 34998155
badalpatel thses are some disadvantages of Calender Control which u cannot come over it simply as clicking of calender and selecting of a date involves a postpack which u cannot avaid. To overcome it u have two options ie....

1. Either u use ajax update panel and put calender inside the box.
2. Use Basic date picker control (free to use), which not only avoids postbacks but also helps by valiatimg dates and much more pofessional look to ur application. Download bdplite



0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now