Solved

disable autopostback for Calender Control

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

680 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