Disable Postback on button ASP.NET c#
here is an example of what I am doing

    Page Load
    {
       //Adds items to a panel (not an updatepanel just a normal panel control)
    }
    
     protected void btnNexMod_Click(object sender, EventArgs e)
    {
    
       // Calls DoWork() and Appends more items to the same panel
    }

My problem is that the asp:button is doing a postback as well as calling DoWork()

Therefore, re-calling my page load, re-initializing my panel :(

I want my items that I have added to the panel to stay there!

All help appreciated, not looking for a hand you the answer kind-of deal.  Any steps are appreciated thanks!





Disable Postback on button ASP.NET c#
===

here is an example of what I am doing

    Page Load
    {
       //Adds items to a panel (not an updatepanel just a normal panel control)
    }
    
     protected void btnNexMod_Click(object sender, EventArgs e)
    {
    
       // Calls DoWork() and Appends more items to the same panel
    }

My problem is that the asp:button is doing a postback as well as calling DoWork()

Therefore, re-calling my page load, re-initializing my panel :(

I want my items that I have added to the panel to stay there!

All help appreciated, not looking for a hand you the answer kind-of deal.  Any steps are appreciated thanks!




