上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 65 下一页
摘要: 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 阅读(2947) 评论(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 阅读(302) 评论(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 阅读(6329) 评论(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 阅读(249) 评论(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 阅读(151) 评论(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 阅读(320) 评论(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 阅读(246) 评论(0) 推荐(0)
摘要: FlexPaper是一个开源轻量级的在浏览器上显示各种文档的组件,被设计用来与PDF2SWF一起使用, 使在Flex中显示PDF成为可能,而这个过程并无需PDF软件环境的支持。它可以被当做Flex的库来使用.另外你也可以通过将一些例如Word、PPT等文档转成PDF,然后实现在线浏览。一. 使用PDF2SWF准备好你的文档首先要将PDF转成SWF,这步可以使用开源的SwfTools自动完成1.下载安装 SwfTools,当前最新版本是0.92. 转换PDF到SWF,可以通过命令行的方式,例如将Paper3.pdf转换成Paper3.swfC:\SWFTools\pdf2swf Paper3.p 阅读全文
posted @ 2011-11-07 10:18 94cool 阅读(900) 评论(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 阅读(9161) 评论(0) 推荐(0)
摘要: Global.cs 获取网址void Application_Start(object sender, EventArgs e) {string url = HttpContext.Current.Request.ServerVariables["Http_Host"].ToString(); } 阅读全文
posted @ 2011-11-06 22:03 94cool 阅读(200) 评论(0) 推荐(0)
上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 65 下一页