How do I force full post-back from a button within an UpdatePanel?

前端 未结 5 1877
南方客
南方客 2020-12-02 16:28

How do I force full post-back from a button within an UpdatePanel?

5条回答
  •  情歌与酒
    2020-12-02 16:51

    I had the same problem using an ImageButton inside a WebDataGrid.

    I put the Line from EvilDr inside the preRender for the webdatagrid instead. Worked great!

    for (int i = 0; i < wdgMyData.Rows.Count; i++)
    {
       ScriptManager.GetCurrent(this).RegisterPostBackControl((ImageButton)wdgMyData.Rows[i].Items[3].FindControl("btnDownloadExcel"));
    }
    

提交回复
热议问题