11 2010 档案

摘要: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 阅读(1967) 评论(0) 推荐(0) 编辑
摘要:1、方法一(不可逆加密)publicstringEncryptPassword(stringPasswordString,stringPasswordFormat){stringencryptPassword=null;if(PasswordFormat="SHA1"){encryptPassword=FormsAuthortication.HashPasswordForStoringInConf... 阅读全文
posted @ 2010-11-18 13:22 Look_Sun 阅读(12785) 评论(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 阅读(1139) 评论(0) 推荐(0) 编辑
摘要:对于开发人员的例行任务,Visual Studio 2005有默认代码段。默认代码段是代码扩展和外侧代码的混合。默认代码段出现在IntelliSense完成列表和代码选择器中。代码段名描述#if该代码段用#if和#endif命令围绕代码#region该代码段用#region和#endregion命令围绕代码~该代码段插入一个析构函数attribute该代码段插入一个定制属性的声明,该定制属性是从S... 阅读全文
posted @ 2010-11-18 12:57 Look_Sun 阅读(205) 评论(0) 推荐(0) 编辑
摘要:下拉框<asp:DropDownListDataMember="数据成员"DataSource="数据源"DataTextField="数据文本字段"DataTextFormatString="数据文本格式字符串"DataValueField="数据值字段"ID="ID"runat="server"></asp:DropDownList>列表框<asp:ListBox... 阅读全文
posted @ 2010-11-16 10:44 Look_Sun 阅读(359) 评论(0) 推荐(0) 编辑
摘要:[1]验证页面<%@pagelanguage="java"import="java.util.*"pageEncoding="gb2312"%><html><head><title>jquery验证框架</title><linkrel="stylesheet"type="text/css"href="css/index.css"&g... 阅读全文
posted @ 2010-11-14 16:34 Look_Sun 阅读(427) 评论(0) 推荐(0) 编辑
摘要:var curCtlIndex = 0;var arrCtl = new Array();var oldEvent = new Array();//设置焦点控件function SetFocusToFirstControl(){ var i = 0,j = -1; for(i=0;i<document.forms[0].elements.length;i++) { if(document.... 阅读全文
posted @ 2010-11-13 15:52 Look_Sun 阅读(233) 评论(0) 推荐(0) 编辑
摘要:一:UTF8编码函数functionURLEncode(Str){if(Str==null||Str=="")return"";varnewStr="";functiontoCase(sStr){returnsStr.toString(16).toUpperCase();}for(vari=0,icode,len=Str.length;i<len;i++){icode=Str.charCod... 阅读全文
posted @ 2010-11-06 14:27 Look_Sun 阅读(1983) 评论(0) 推荐(0) 编辑
摘要:上传预览我们可以这么写<scriptlanguage="javascript">functiontest(){document.all.showimg.src=document.all.file1.value;}</script><imgid="showimg"><inputtype="file"id="file1"onchange="test()">... 阅读全文
posted @ 2010-11-06 14:26 Look_Sun 阅读(6893) 评论(0) 推荐(1) 编辑
摘要:1.前台 <asp:CheckBoxList ID="cbltype" runat="server" RepeatLayout="Flow" RepeatColumns="12"> </asp:CheckBoxList>2.绑定DataTable dt = StaffBusiness.GetMSStaffList(CommonBusiness.GetLoginInfo(th... 阅读全文
posted @ 2010-11-04 13:05 Look_Sun 阅读(218) 评论(0) 推荐(0) 编辑

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