I just want to refresh the page after a click on the ASP button "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);
}
I dont really understand what your server event is doing , you can try for refreshing the page.
Page.Response.Redirect(Page.Request.Url.ToString(), true);
but maybe you just mean to create full post back or using update panel to update your view?
试试这个说法。
Response.Redirect(Request.RawUrl);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.