上一页 1 ··· 53 54 55 56 57 58 59 60 61 ··· 66 下一页
摘要: jquery 清空 option $(“#sel”).empty();添加4法:1:$('#example').append('<option value="foo" selected="selected">Foo</option>');2:('#example').append(new Option('Foo', 'foo', true, true));3:var options = $('#example').attr('o 阅读全文
posted @ 2011-11-23 22:50 94cool 阅读(233) 评论(0) 推荐(0)
摘要: 把DropDownList改成select用Request.From来取值赋值用value如:<select runat="server" id="ddlCity" style="width:75px">赋值ddlCity.Value="beijing"取值Request["ddlCity"] 阅读全文
posted @ 2011-11-23 22:45 94cool 阅读(318) 评论(0) 推荐(0)
摘要: To Read Select Option Value$('#selectId').val();To Set Select Option Value$('#selectId').val('newValue');To Read Selected Text$('#selectId>option:selected').text();// sets selected index of a select box to the option with the value "0"$("select#elem& 阅读全文
posted @ 2011-11-21 00:11 94cool 阅读(2957) 评论(0) 推荐(0)
摘要: DateTime.ToString("dd/MM/yyyy");后,不能直接Convert.ToDateTime的解决:DateTime.ParseExact(this.DateBegin.Text, "dd/MM/yyyy", System.Globalization.CultureInfo.GetCultureInfo("en-US")).ToString("yyyy-MM-dd") ; 阅读全文
posted @ 2011-11-20 17:27 94cool 阅读(315) 评论(0) 推荐(0)
摘要: 在div中加入属性closed="true<script type="text/javascript"> $(function () { $('#vlist').dialog({ autoOpen: false }); });</script><div id="vlist" class="hide" closed="true" style="width:520px"> <div class="breadcrumb&qu 阅读全文
posted @ 2011-11-20 04:40 94cool 阅读(6348) 评论(0) 推荐(0)
摘要: 后台绑定:DataTable dt = RateStorage.GetDataTable(2); foreach (System.Data.DataRow dr in dt.Rows) { ListItem li = new ListItem(); li.Value = dr["ChargeAmount"].ToString(); li.Text = (dr["Days"].ToString().TrimEnd()).PadRight(10, '\u00A0') + dr["ChargeAmount"].ToStrin 阅读全文
posted @ 2011-11-16 22:04 94cool 阅读(256) 评论(0) 推荐(0)
摘要: from:http://www.cnblogs.com/ly5201314/archive/2008/09/04/1284149.html要防止同一用户同时登陆,首页应该记录在线用户的信息(这里与用户名为例),然后判断正在登陆的用户里面是否已存在。在这里使用一个cache存放已经登陆的用户名,但是还有一个问题就是要知道用户是什么时候离开系统的呢?这就要定期清除cache中的内容了,也就是设置一个cache的时间。这个时间可以跟用户的session值联系起来,刚好当用户session值失效的时候该用户在cache里面的信息也会被清空.这样就达到了防止同时登陆的效果,具体代码如下: 放在登陆成.. 阅读全文
posted @ 2011-11-12 23:28 94cool 阅读(165) 评论(0) 推荐(0)
摘要: from:http://www.pin5i.com/showtopic-25932.html在没有了解RFC1738的时候,一直以为Url的正则表达式很简单,没想到Url有这么多分类,更没想到一个普通的http的正则表达式也不是那么简单。以下是我搜到的关于http的正则表达式: http://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?复制代码当然这已经满足大部分人的需求了,但是如果需要严格的验证的话还是要符合RFC1738了。Url包括Http,Ftp,News,Nntpurl,Telnet,Gopher,Wais,Mailto,File,Prosperurl 阅读全文
posted @ 2011-11-10 19:20 94cool 阅读(360) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Text;using System.Collections;namespace AppUtility{ /// <summary> /// 获得汉字的拼音 /// </summary> static public class PinyinHelper { static private Hashtable _pinyinHash; #region static stor. static PinyinHelper() { _pinyinHash = new 阅读全文
posted @ 2011-11-07 10:20 94cool 阅读(258) 评论(0) 推荐(0)
摘要: from:http://hi.baidu.com/%D6%DC%B3%AC%D2%DA/blog/item/9d842027d0bb751b8a82a1e7.html官方地址:http://www.swftools.org/download.html下载swftools-2010-02-06-1900.exeswftools-2010-02-06-1900.rar命令行参数可以通过pdf2swf -f得到: * -h , –help Print short help message and exit 打印帮助信息 * -V , –version Print version info and e 阅读全文
posted @ 2011-11-07 10:18 94cool 阅读(9201) 评论(0) 推荐(0)
上一页 1 ··· 53 54 55 56 57 58 59 60 61 ··· 66 下一页