ASP.NET AJAX No screen refresh on partial postback

We have an issue on our page where on the first click of the button (we have ASP.NET ajax for partial refresh) nothing happens, then on each subsequent click the information is refreshed as if the previous event had fired.

Here is the page code. Events are button clicks that are triggered from a table. Which is retransmitted to the backend.

<asp:ScriptManager EnablePartialRendering="true" ID="scrptMgr1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel runat="server" ID="folderContainer">
        <ContentTemplate>
            <asp:Table id="FolderTable" CssClass="FolderTable" runat="server" CellSpacing="0"></asp:Table>
        </ContentTemplate>
    </asp:UpdatePanel>

      

Any ideas?

Thank.

0


source to share


3 answers


Your table is probably filling up too late with the page lifecycle. Try to create a table in PreInit.



-1


source


Have you tried the HTML table with or without runat = "server"?



Are you adding or removing controls inside the table in a postback?

0


source


Inspired by Robert:

In which event handler are you creating the table? If you build it in Page_Load without checking IsPostBack) then the button's click event hasn't been handled yet.

You need to create a table in your button handler.

0


source







All Articles