Using Infragistics 2010 v3, we have a very simple form with a WebDatePicker and a button. When entering a value in the WebDatePicker, and clicking the button for a postback, we do not see the date value entered on the code-behind.
We experience the same behavior with the WebDateTimeEditor control.
Has anyone else experienced this? I have attached a zip file with the form files.
Thanks.
Hello,
We solved this by making a change to our web.config file. We set xhtmlConformance to "Transitional" (it was set to "Legacy").
For example:
<
xhtmlConformance mode="Transitional" />
Hi flegar,
Which exactly events your application uses to submit form? I tried different triggers for postbacks (see codes below) and on server within Page.OnLoad the values in WebDatePicker and WebDateTimeEditor were correct and matched with values entered on client regardless of postback trigger.
<asp:Button ID="Button1" runat="server" Text="Button" UseSubmitBehavior="False" /><asp:Button ID="Button2" runat="server" Text="Button" /><span onclick="document.forms[0].submit()">submit</span><span onclick="__doPostBack('', '')">doPostBack</span>
I have the same problem. The webdatepicker value get lost after a postback even if the webdatepicker display the date. The only way to get webdatepicker value is if i work it only from a button click event.