disable autopostback for Calender Control

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.
Who is Participating?
axtoxic107Connect With a Mentor Commented:
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.


Or you can wrap it inside a Update Panel

More info here: http://ajax.net-tutorials.com/controls/updatepanel-control/
Anurag AgarwalCommented:
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

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.