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
615
Problems with webasyncrefreshpanel and webdatetimeedit
posted

Hi!

I have a strange problem with the webasyncrefreshpanel and the datetimeedit. I'm using 2009 vol 2 of the asp.net controls. See my code below:

 <asp:FormView ID="blaat" DefaultMode="Insert" runat="server">
  <InsertItemTemplate>
    <igmisc:WebAsyncRefreshPanel ID="_warpTimes" runat="server" Height="100%" Width="100%">
      <table style="width: 100%;">
        <tr>
          <td style="vertical-align: middle;">
            Vertrek:
          </td>
          <td>
            <div style="width: 75px;">
              <igtxt:WebDateTimeEdit ID="DepartureTime" runat="server" EditModeFormat="t" HideEnterKey="True"
                MinimumNumberOfValidFields="1" Width="50px" Style="margin: 0; vertical-align: bottom;"
                DataMode="DateOrNull" DisplayModeFormat="t" NullText="--:--" Value='<%# Bind("DepartureTime") %>'>
              </igtxt:WebDateTimeEdit>
              <asp:ImageButton ImageUrl="~/Images/clock.png" TabIndex="-1" ToolTip="Huidige tijd gebruiken"
                runat="server" ID="ImageButton3" OnClick="DepartureTimeButton_Click" Style="vertical-align: bottom;" />
            </div>
          </td>
        </tr>               
      </table>
    </igmisc:WebAsyncRefreshPanel>
  </InsertItemTemplate>
</asp:FormView>

 After the WebDateTimeEdit there is an imagebutton with an onclick handler, which sets the current time to the webdatetimeedit.  After I have done this I select the webdatetimeedit and hit the backspace key. Then a browser back wil happen. This is pretty annoying.

The strange thing with this is that it's only happening in a code file that isn't on the root of the application.

I've tried to upgrade to the newest version, but then I have to use an updatepanel, right?  Problem with that is that the values won't be in the values collection of the inserting event and that i can't have 2 updatepanels (insert and edit template) with controls with the same id. So then I should rewrite my control completely.

Is there someone with any idea how to fix this?

Parents
  • 10240
    posted

    Hi datamex,

    This is an initial update to let you know that I will be looking into this for you. I will follow-up with you regarding this matter on or before Tuesday.

     

Reply Children