Asp.Button occassionally not getting to the OnClick Function
15:33 02 Apr 2026

I can recreate an issue I have the following asp control:


The OnClick command is such:

protected void btnExecSP_Click(object sender, EventArgs e)
{
    //Accordion2.Visible = true;
    ExecStoredProc(true);

}

90% of the time it works fine. There's one scenario where when I click the button it does not even get into this function. In debug mode, I've stepped through the page_init, Page_Load, Page_LoadComplete, I also see it call a DevExpress ASPxGridview OnClientLayout, and then the process just stops. It does not get into the Click function.

asp.net devexpress