private void Page_Load(object sender, System.EventArgs e) { // 页面加载事件处理 this.WebSiteTitle = CommonStatic.WebSiteTitle(); if (!Page.IsPostBack) { // 如果条一次加载页面 //this.tblAvi.Visible = false; // 置登录成功进入管理动画为不可见 //用户信息置空 this.tbxAdminUser.Text = ""; this.tbxAdminPass.Text = ""; } }
private void Page_Load(object sender, System.EventArgs e) { // 页面加载事件处理 this.WebSiteTitle = CommonStatic.WebSiteTitle(); string strJavaScript = "<script language='javascript'>" + "window.resizeTo(640,480);" + "window.moveTo(screen.availWidth/2-320,screen.availHeight/2-240);" + "function FullScreen()" + "{" + "window.moveTo(0,0);" + "window.resizeTo(screen.availWidth,screen.availHeight);" + "var thewindow = window.open('Login.aspx', '_top');" + "thewindow.focus(); " + "}" + "setTimeout('FullScreen()',5000);" + "</script>"; // 客户端代码声明,该代码完成开起全屏登录窗口 Page.RegisterClientScriptBlock("FullScreen", strJavaScript); // 注入代码 }
private void Page_Load(object sender, System.EventArgs e) { this.WebSiteTitle = CommonStatic.WebSiteTitle(); }