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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top