473,395 Members | 1,578 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.

ASP Web Calendar Problem

Hi, this is a repost of a problem

I am new to .Net and for my first application I have a form with a couple of
databound dropdown lists, these work fine, i also have a button which pops
up a calendar and allows the user to select a date, which fills in a
textbox, all this works fine as individual processes, the problem is that if
the user selects anything from the dropdowns, then selects the calendar, it
completely clears the dropdowns of data, (in fact it clears the whole form)
which also loses the original selections, can anyone help?

Regards

Dave
Jul 21 '05 #1
2 1246
The calendar is a very clunky implementation. It performs a postback with
practically every operation that you do. In that, you code must be ready
for such postback events. Sounds like you have initialization logic that is
run running when a postback happens. Look for conditions such as
if(!this.IsPostback){...} (or something like that).

"Dave" <ro*******@hotmail.com> wrote in message
news:bo**********@newsreaderg1.core.theplanet.net. ..
Hi, this is a repost of a problem

I am new to .Net and for my first application I have a form with a couple of databound dropdown lists, these work fine, i also have a button which pops
up a calendar and allows the user to select a date, which fills in a
textbox, all this works fine as individual processes, the problem is that if the user selects anything from the dropdowns, then selects the calendar, it completely clears the dropdowns of data, (in fact it clears the whole form) which also loses the original selections, can anyone help?

Regards

Dave

Jul 21 '05 #2
Thanks Peter, will try that
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:OI**************@TK2MSFTNGP09.phx.gbl...
The calendar is a very clunky implementation. It performs a postback with
practically every operation that you do. In that, you code must be ready
for such postback events. Sounds like you have initialization logic that is run running when a postback happens. Look for conditions such as
if(!this.IsPostback){...} (or something like that).

"Dave" <ro*******@hotmail.com> wrote in message
news:bo**********@newsreaderg1.core.theplanet.net. ..
Hi, this is a repost of a problem

I am new to .Net and for my first application I have a form with a couple
of
databound dropdown lists, these work fine, i also have a button which
pops up a calendar and allows the user to select a date, which fills in a
textbox, all this works fine as individual processes, the problem is

that if
the user selects anything from the dropdowns, then selects the calendar,

it
completely clears the dropdowns of data, (in fact it clears the whole

form)
which also loses the original selections, can anyone help?

Regards

Dave


Jul 21 '05 #3

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

Similar topics

16
by: DFS | last post by:
If you're listening, I want the middle of the calendar (showing 1 month) to open below the cursor position. It currently opens just to the right and below the cursor position. I hunted through...
5
by: Miguel Dias Moura | last post by:
Hello, i am trying to create a .css file with several styles and apply them to the calendar control so i can change the look of: 1. Text Type and Format (Bold, Underline, etc) 2. Background...
0
by: maxrawson | last post by:
First, let me start by saying my asp.net experience is still in it's infancy so please bare with me as I try to explain my situation. I have created a single page that with the use of many...
2
by: Caesar Augustus | last post by:
First, let me start by saying my asp.net experience is still in it's infancy so please bare with me as I try to explain my situation. I have created a single page that with the use of many...
3
by: =?Utf-8?B?UGFycm90?= | last post by:
I applied the following Ajax code in my web page which has a calendar control to keep my page from completely reloading everytime something was changed. <atlas:ScriptManager ID="ScriptManager1"...
24
by: =?Utf-8?B?Tkg=?= | last post by:
I have a basic calendar and a SelectionChanged event (asp.net 2.0). How can I handle it when a user chooses the same date again, in this case the SelectionChanged event is not fired because,...
3
by: thorpk | last post by:
I posted this problem earlier in the month and some one decided it was better to change the subject and ask a completely different question. I am therefore reposting. I am hoping some one can...
0
by: mathewgk80 | last post by:
HI all, I am having popup calendar Javascript code. But i dont know how it is connecting to asp.net code.. I am using asp.net,c#.net and also using 3tier architecture with master page.... I...
4
by: gubbachchi | last post by:
Hi all, Please anybody help me solve this problem. I am stuck up with this from past 2 weeks. I am developing an application where, when the user selects date from javascript datepicker and enters...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.