页面禁止后退的方法
摘要:在需要禁止后退的页面顶部添加脚本<script type='text/javascript'>window.history.forward();//禁止页面后退</script>
阅读全文
posted @
2008-12-24 09:14
朱胜
阅读(1519)
推荐(0) 编辑
upLoad控件设置禁止输入的方法
摘要:由于需要,要设置上传控件只能选择文件路径,通过unselectable="on"会引起右键点击就可输入的情况,以下的方法可以彻底解决问题:<asp:FileUpload ID="FileUpload1" runat="server"onkeydown="event.returnValue=false;" onpaste="return false"/>防止用户输入和粘贴。
阅读全文
posted @
2008-12-17 16:14
朱胜
阅读(247)
推荐(0) 编辑
[ASP.NET] 实现Label自动换行
摘要:在<Label></Lable>标签外侧添加<pre></pre>: <asp:Label id="labDescription" runat="server" />在Page_Load中添加:this.labDescription.Style.Add("word-break","break-all");
阅读全文
posted @
2008-12-12 16:03
朱胜
阅读(997)
推荐(0) 编辑
js调用web服务范例
摘要:1.Web服务 [WebMethod] public string webServiceTest(string userID) { return userID; }2. 调用方法RequestByGet("http://www.xxx.com/webService.asmx/webServiceTest?userID=leochu2008",null);3. 脚本函数function Reques...
阅读全文
posted @
2008-12-04 10:50
朱胜
阅读(478)
推荐(0) 编辑