Can anyone help please ASP.NET

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

Dave

this is probably a really easy one to solve, but i have only been
programming dot net for a couple of weeks, i have a webform with a couple of
dropdowns, and a calendar which pops up after pressing a button, the problem
is that when a date is selected the dropdowns lose the selected item and
either clear completely or revert to the top of the list

Thanks in anticipation

DR
 
It sounds like you are losing the values on PostBack... so when you set
them, associate both of the with Session Variables is one way, and then
after the post back reset the controls to the Post Back variables. I don't
have the IDE in front of me, but most controls allow you to Causes PostBack
= False....I think the calendar does as well, and this should fix it too.

HTH,

Bill
 
Back
Top