473,395 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Postback with the Calendar Control

Why is it all controls with an Autopostback feature report their values in the Page Load, but the calendar control's selecteddate value doesn't change till it hits the Selection_Changed Event. Is there anyway around this? My issue stems from a page that contains a user custom webcontrol that accepts the currently selected date from a calendar control, yet it is always 1 click behind. I have other custom webcontrols that accept input form dropdown lists that populate correctly because the selectedvalue attribute of the object is update on page load, but the calendar does not, so the data displayed from the date never matches the data displayed from the dropdown.
Nov 18 '05 #1
1 1106
Yes, I've noticed that too with the calendar control. I consider it a big
design flaw. It is one that if I had not been well into my code
implementation, I would have rolled my own calendar control. I could not
find an optimal way to work around this. Instead, I end up executing some
code, 2xs, in two different server events each time the page is requested on
a postback.
Not good, I know, but the cost of a rewrite is greater than the
load/frequency this page is used in my application.
--
Peter O'Reilly
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: C. Stadther | last post by:
Why is it all controls with an Autopostback feature report their values in the Page Load, but the calendar control's selecteddate value doesn't change till it hits the Selection_Changed Event. Is...
0
by: Antoine | last post by:
Forgive me as a beginner in asp.net. I wanted to ask some simple but clear questions, at least I hope they are. Ive seen a control in asp.net that works with codebehind and the good thing about...
3
by: Alan Silver | last post by:
Hello, I have an app where the user needs to fill in details about an event, including the date and time of the event. I want a clean way to allow them to pick the date and time. In the old days...
2
by: Sathyaish | last post by:
I notice the calendar control in ASP.NET does not have an AutoPostBack property. I want that when I select a date from the control, the control must *not* post back the page. How do I do that?
2
by: Antoine | last post by:
Hi I want to avoid postback on a calendar. I have a .NET calendar control in asp.net. Ideally I would like to remove any indication of the postback fore/back months. It sucks. I would like to...
4
by: jones.jeremyp | last post by:
Ok, I am building a control, and it is a Calendar and a previous and next month buttons. The Calendar is build completely by hand. Now, it is using various properties such as Month, Day, Year to...
3
by: John Kotuby | last post by:
Hi all, Just wondering. I am converting an ASP application to ASP.NET 2.0. The ASP version used a JavaScript Calendar that would pop up on the client side and populate various text fields with...
2
by: Rey | last post by:
Howdy all. Using visual web developer (VB) on xp pro box. My problem with with a web form that on accessing the calendar control causes a postback that moves the cursor back to the txtFirstName...
2
by: John Kotuby | last post by:
Hi guys, I am converting a rather complicated database driven Web application from classic ASP to ASP.NET 2.0 using VB 2005 as the programming language. The original ASP application works quite...
0
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, imagine this for a moment if you will: i have a row in a gridview that when it is in edit mode there is a column that contains a dropdownlist and 2nd column that contains a user control....
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.