ASP Web Calendar Problem

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

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
 
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).
 
Thanks Peter, will try that


Peter Rilling said:
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).

couple that
 
Back
Top