Navigate back & reload page

后端 未结 1 1435
甜味超标
甜味超标 2021-01-07 06:05

I have a problem with the navigation in my ASP.NET (Framework 4) web project. I have a login field on the master-page. The master-page contains also one ContentPlaceHolder w

相关标签:
1条回答
  • 2021-01-07 06:43

    try this

    protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Response.Buffer = true;
                Response.CacheControl = "no-cache";
                Response.AddHeader("Pragma", "no-cache");
                Response.Expires = -1441;
            }
    
    
        }
    
    0 讨论(0)
提交回复
热议问题