Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
510
WebDateChooser Value Changed, not changing?
posted

OK - there must be an easy solution here that I am not seeing.  I have a WebDateChooser control.  I set the AutoPostBack for ValueChanged to true and set a breakpoint in the On_ValueChanged server-side event.  However,when I run and change the date, thereby triggering the On_ValueChanged event, the date of the control is Today's date - which I set in the PageLoad event as a default.

What obvious little detail am I missing here?  I am on Visual Studio 2005, using Infragistics 8.2 CLR 2.0.

Thanks in advance,
Dan

  • 510
    Verified Answer
    Offline posted

     Never mind, I'm an idiot and it's been a long week.  

    Since I don't mind poking fun at my own blunders, here's what happened.  My chooser is in a user control for my menubar.  I set the date to DateTime.Today in PageLoad for the user control.  I did NOT do this thru a If (!Page.IsPostBack) construct, hence everytime I posted back to the server I reset the chooser to DateTime.Today.

    Once I set the control property to not allow nulls, and took out the initialization code all is well.  Did I say it's been a long week?

    D.