随笔 - 56  文章 - 27 评论 - 33 阅读 - 99855
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

12 2008 档案
页面禁止后退的方法
摘要:在需要禁止后退的页面顶部添加脚本<script type='text/javascript'>window.history.forward();//禁止页面后退</script> 阅读全文
posted @ 2008-12-24 09:14 朱胜 阅读(1519) 评论(0) 推荐(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) 推荐(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) 推荐(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) 推荐(0) 编辑

点击右上角即可分享
微信分享提示