Coffeehouse Thread

1 post

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Submit button not fired and Table object disappears

Back to Forum: Coffeehouse
  • User profile image

    Hi Friends,
       I have some doubts in ASP.NET related to <asp:table> Object

       My requirement is as follows:
     If you press the enter button after entering the data in a text box, the Table object dissappears. I want to submit data when button presssed.

       My page designed in the following manner:

       In .aspx page, I placed following controls.

    <asp:table id="ParamTable" Height="50px" Width="200px" Runat="server">
      <asp:TableCell Width="100"></asp:TableCell>
    <asp:button id="btnSubmit" runat="server" Text="Submit" CssClass="button"></asp:button>

    Now in page Load, under "Not Page.IsPostBack", I dynamically add controls to the Table object (ParamTable).

    When I added more than one control (mostly are textbox objects) to Table object and enter data in any one control and press enter, the data was submitted.

    But if only one control (textbox control) is added to Table object and enter data and press enter, the Submit button is not fired and also table object is disappeared.

    Note: The same code works fine for Netscape, but fails in IE.



Conversation locked

This conversation has been locked by the site admins. No new comments can be made.