首页 > 解决方案 > 单击按钮后 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);
}

标签: c#asp.net

解决方案


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

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

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


推荐阅读