单击按钮后刷新ASP.net页面

时间:2020-03-09 13:08:05

标签: c# asp.net

我只想在单击ASP按钮“ VALIDER”后刷新页面。

<asp:Button Text="VALIDER" ID="lbSuiteOuvragesNContr" 
            runat="server" onclick="lbSuiteOuvragesNContr_Click" />




protected void lbSuiteOuvragesNContr_Click(object sender, EventArgs e)
{
    BoProcesVerbaux.ModifierInspectionGpeOuvrageComposition(uc_OuvragesNonControlesV41.ListeInspection);
    this.IdPv = IdProcesVerbal;
    uc_OuvragesNonControlesV42.IdPV = idPv;
    InitialiserPage(this.IdPv);
}

2 个答案:

答案 0 :(得分:0)

我不太了解您的服务器事件在做什么,您可以尝试刷新页面。

Page.Response.Redirect(Page.Request.Url.ToString(), true);

但是也许您只是想创建完整的回发信息或使用更新面板来更新您的视图?

答案 1 :(得分:0)

尝试此语句。

 Response.Redirect(Request.RawUrl);
相关问题