[英]ASP.net page refresh after click button
我只想在单击 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);
}
我不太明白你的服务器事件在做什么,你可以尝试刷新页面。
Page.Response.Redirect(Page.Request.Url.ToString(), true);
但也许您只是想创建完整的回帖或使用更新面板来更新您的视图?
试试这个说法。
Response.Redirect(Request.RawUrl);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.