Solved

disable autopostback for Calender Control

Posted on 2011-02-28
3
633 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

791 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