Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

disable autopostback for Calender Control

Posted on 2011-02-28
3
Medium Priority
?
684 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Integration Management Part 2
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

916 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