|
deList = root.SelectNodes(xpath); // 便利节点集合 foreach (XmlNode node in nodeList) { pages.Add(node.Attributes["title"].Value); } } catch (Exception ex) { throw new Exception(ex.Message); } } return pages; } } 重构MasterPage.cs中的代码,加入IsValidateNeeded(string url)方法,用于检测当前页面是否需要验证,修改验证方法: public partial class MyMasterPage : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { // 调用验证方法 CheckLogin();  上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下一页 |
|
|
|
|
|
|
|