2016-11-30 71 views

回答

0

我這樣做的方式,但我不喜歡這種方法:

protected override void OnInit(EventArgs e) 
{ 
    if (ViewMode == ViewModeEnum.Edit) 
     if (QueryHelper.GetText("showpanel", "0") == "1") 
     { 
      string x = Request.RawUrl.Replace("showpanel=1", "showpanel=0"); 
      Response.RedirectPermanent(x, StopProcessing); 
     } 
}