摘要: JavaScript在WEB编程中能起到很大的作用,将一些常用的功能写成JavaScript类库。将下面代码保存为Common.js类库功能:1.Trim(str)--去除字符串两边的空格2.XMLEncode(str)--对字符串进行XML编码3.ShowLabel(str,str)--鼠标提示功能(显示字符,提示字符)可以设置显示的提示的文字的字体、颜色、大小以及提示的背景颜色、边框等4.Is... 阅读全文
posted @ 2010-11-18 15:28 Look_Sun 阅读(1958) 评论(0) 推荐(0) 编辑
摘要: 1、方法一(不可逆加密)publicstringEncryptPassword(stringPasswordString,stringPasswordFormat){stringencryptPassword=null;if(PasswordFormat="SHA1"){encryptPassword=FormsAuthortication.HashPasswordForStoringInConf... 阅读全文
posted @ 2010-11-18 13:22 Look_Sun 阅读(12767) 评论(3) 推荐(2) 编辑
摘要: ■打开■<input name=Button onClick=document.all.WebBrowser.ExecWB(1,1) type=button value=打开><OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0&g... 阅读全文
posted @ 2010-11-18 13:20 Look_Sun 阅读(1135) 评论(0) 推荐(0) 编辑
摘要: 对于开发人员的例行任务,Visual Studio 2005有默认代码段。默认代码段是代码扩展和外侧代码的混合。默认代码段出现在IntelliSense完成列表和代码选择器中。代码段名描述#if该代码段用#if和#endif命令围绕代码#region该代码段用#region和#endregion命令围绕代码~该代码段插入一个析构函数attribute该代码段插入一个定制属性的声明,该定制属性是从S... 阅读全文
posted @ 2010-11-18 12:57 Look_Sun 阅读(199) 评论(0) 推荐(0) 编辑