469,601 Members | 2,272 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,601 developers. It's quick & easy.

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 1137
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Miguel Dias Moura | last post: by
reply views Thread by maxrawson | last post: by
2 posts views Thread by Caesar Augustus | last post: by
3 posts views Thread by =?Utf-8?B?UGFycm90?= | last post: by
24 posts views Thread by =?Utf-8?B?Tkg=?= | last post: by
3 posts views Thread by thorpk | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.