菜菜问题:: 如何做登陆窗口,要求显示在屏幕中央 use scriptwindow.screen.width得到分辨率1024 or 768计算得到参数后用window.resizeTo改变窗口大小,用window.moveTo移动到中央 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 放上两个textbox控件和一个button控件,读入用户名和密码,然后和数据库中的资料对比。注意:1、要验证textbox中输入的值,不能为空,不能太长2、要把login后的页放入一个文件夹内,让后配置web.config,以防止不经过login页面,直接登陆推荐书籍:asp.net技术内幕(asp.net unleashed)机械工业出版社 99元这本书非常好,基础知识都有,买本看看吧 你这不是反复打开自己(login.aspx)吗?open之后又会执行onload 不是说了吗不要用window.open用window.resizeTo和window.moveTo 江雨, 用window.resizeTo 和window.moveto 可以做到了, 但是这样的话怎么让登陆窗口没有工具条, 没有状态栏等等, 请指教!! 如果login是起始页的话没有办法消除如果是新打开的窗口的话,在父窗口加一个登录按钮,然后把这句代码加入page_load里Button1.Attributes.Add("onclick","window.open('login.aspx','newwin','toolbar=no,menubar=no,status=yes,location=no,resizable=no,scrollbars=yes,width=600,height=350,top=100,left=100');return false;"); <html><script>function openwin(){window.open("page.htm","","width=200,height=200")}function get_cookie(Name) {var search = Name + "="var returnvalue = "";if (document.cookie.length > 0) {offset = document.cookie.indexOf(search)if (offset != -1) {offset += search.lengthend = document.cookie.indexOf(";", offset);if (end == -1)end = document.cookie.length;returnvalue=unescape(document.cookie.substring(offset, end))}}return returnvalue;}function loadpopup(){if (get_cookie('popped')==''){openwin()document.cookie="popped=yes"}}</script><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta name="GENERATOR" content="Microsoft FrontPage 4.0"><meta name="ProgId" content="FrontPage.Editor.Document"><title>New Page 1</title></head><body onload="loadpopup()"></body></html> <div id="maindiv" style="left:expression(document.body.clientWidth/2-parseInt(this.style.width)/2);top:expression(document.body.clientHeight/2-parseInt(this.style.height)/2-50);height:150px;width:400px;position:absolute;border:1px solid #000000" oncontextmenu="return false;">登陆界面内容</div> 发布文档!!!急··· 关于ASP.NET MVC 奇怪的“服务器应用程序不可用 ”问题 读取数据库年月日! 菜鸟请教:ASP.NET中如何使用GroupBox????HELP…… 动态生成DataGird 删除记录问题 关于DropDownList 取值问题 通过webservices访问接口时出现异常,被阻止。。。 请大神帮我看下这段代码有什么错误,执行后结果没有改变,在下新手。 控件datagrid的宽度和其中每个column的宽度应该如何设置? 如何叛断sub里的代码完全执行? 能说一下利用vss6.0c进行团队开发时签入签出是怎么回事吗
注意:
1、要验证textbox中输入的值,不能为空,不能太长
2、要把login后的页放入一个文件夹内,让后配置web.config,以防止不经过login页面,直接登陆推荐书籍:asp.net技术内幕(asp.net unleashed)机械工业出版社 99元
这本书非常好,基础知识都有,买本看看吧
open之后又会执行onload
不要用window.open
用window.resizeTo和window.moveTo
但是这样的话怎么让登陆窗口没有工具条, 没有状态栏等等, 请指教!!
如果是新打开的窗口的话,在父窗口加一个登录按钮,然后把这句代码加入page_load里
Button1.Attributes.Add("onclick","window.open('login.aspx','newwin','toolbar=no,menubar=no,status=yes,location=no,resizable=no,scrollbars=yes,width=600,height=350,top=100,left=100');return false;");
<script>function openwin(){window.open("page.htm","","width=200,height=200")}function get_cookie(Name) {var search = Name + "="var returnvalue = "";if (document.cookie.length > 0) {offset = document.cookie.indexOf(search)if (offset != -1) {offset += search.lengthend = document.cookie.indexOf(";", offset);if (end == -1)end = document.cookie.length;returnvalue=unescape(document.cookie.substring(offset, end))}}return returnvalue;}function loadpopup(){if (get_cookie('popped')==''){openwin()document.cookie="popped=yes"}}</script><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head><body onload="loadpopup()"></body></html>
top:expression(document.body.clientHeight/2-parseInt(this.style.height)/2-50);height:150px;width:400px;position:absolute;border:1px solid #000000" oncontextmenu="return false;">
登陆界面内容
</div>