Tuesday, March 13, 2012

strange problem

I have one very strange problem. I have asp:textbox control for entering date. I use asp:calendar control to fill the date. I open the asp:calendar control in new web form with javascript. User selects the date and fill the asp:textbox with that date. It works fine. But when I click the button which find the total; the value in that asp:textbox control which has date does not stay. All other control can maintain their values. Please help me.Is your textbox disabled. ASP.net has a problem with getting values from disabled controls on postback. My advice use javascript to re-enable the textbox on submit and turn it off after your done then you will see your values.

0 comments:

Post a Comment