文章分类 - aspx
摘要:浏览者操作系统的默认语言 Request.ServerVariables.Get( "HTTP_ACCEPT_LANGUAGE ") 客户端ip: Request.ServerVariables.Get( "Remote_Addr "); 客户端主机名: Request.ServerVariables.Get( "Remote_Host "); 服务器ip: Request.ServerVaria...
阅读全文
摘要:在Asp.net中,有时候需要禁用掉一个a链接元素.在服务器端,比较容易;只需要设置LinkButton的Enabled属性即可.那么在客户端,如何使用javascript来实现呢? 如果你想当然的认为,使用a.disabled=true就能实现,那就错了.正确的方法是:同时设置disabled属性和href属性:1)禁用a元素; [代码]2)启用a元素; [代码]注意:LinkButton在的...
阅读全文
摘要:function OnlyNum(objText) { var realKey = String.fromCharCode(event.keyCode) var myReg = /^[0-9]+$/; if (myReg.test(event.srcElement.value + realKey) == false) { event.returnValue = false; }}在onkeyre...
阅读全文
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta ht...
阅读全文
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title></head><body> <div id="img1" style="z-index: 100; left: 2px; width: 180px; positi...
阅读全文
摘要:~/VisitorView.aspx 转成http://localhost:15982/Synair.New.Visitor/VisitorView.aspxpublic static string GetVirsualURL(string path{ path = path.Replace("~", ""); HttpRequest request = HttpContext.Current...
阅读全文
摘要:<appSettings> <add key="ItemId" value="ep2010"/> </appSettings>System.Configuration.ConfigurationSettings.AppSettings["ItemId"];
阅读全文
摘要:Image 放在td中莫名的在IE中下面出现了空格(Firefox和opera中正常),把td和image中的空格删掉就好了。
阅读全文
摘要:区域性/语言名称 区域性标识符 区域性 ""(空字符串) 0x007F 固定区域性 af 0x0036 南非荷兰语 af-ZA 0x0436 南非荷兰语(南非)sq 0x001C 阿尔巴尼亚语 sq-AL 0x041C 阿尔巴尼亚语(阿尔巴尼亚) ar 0x0001 阿拉伯语 ar-DZ 0x1401 阿拉伯语(阿尔及利亚) ar-BH 0x3C01 阿拉伯语(巴林) ar-EG 0x0C01 阿...
阅读全文
摘要:System.Text.RegularExpressions.Regex regex1 = new System.Text.RegularExpressions.Regex(@"<script[\s\S]+</script *>", System.Text.RegularExpressions.RegexOptions.IgnoreCase); System.Text.Regul...
阅读全文
摘要:public void SaveToExcel(GridView _gv,Page _page) { _page.Response.Clear(); _page.Response.Buffer = true; _page.Response.Charset = "GB2312"; _page.Response.Write("<meta http-equiv=Content-Type conte...
阅读全文
摘要:一个格式良好的XML包括以下几点 1 第一行是 <?xml version="1.0"?> 2 单根 3 标记的开始和结束一致,大小写匹配 4 标记属性用引号引起来 5 命名不能用保留字,不能用空格 6 标记层层嵌套 7 XML文档大小写敏感,就是区分大小写的 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> &...
阅读全文
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta ht...
阅读全文
摘要:<appSettings> <add key="ItemId" value="ep2010"/></appSettings>System.Configuration.ConfigurationSettings.AppSettings["ItemId"];
阅读全文
摘要:<membership> <providers> <remove name="AspNetSqlMembershipProvider"/> <add connectionStringName="Db" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndA...
阅读全文
摘要:function setCookie(name, value){ var Days = 30; //时间为30天 var exp = new Date(); exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000); document.cookie = name + "=" + escape(value) + ";expires=" + exp...
阅读全文
摘要:$get("selItem").options[$get("selItem").selectedIndex].text
阅读全文

浙公网安备 33010602011771号