11 2011 档案

摘要: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 阅读(198) 评论(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 阅读(277) 评论(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 阅读(2937) 评论(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 阅读(295) 评论(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 阅读(6315) 评论(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 阅读(240) 评论(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 阅读(145) 评论(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 阅读(308) 评论(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 阅读(237) 评论(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 阅读(874) 评论(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 阅读(9152) 评论(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 阅读(190) 评论(0) 推荐(0) 编辑
摘要:HttpContext.Current.Request.ServerVariablesRequest.ServerVariables["Url"] 返回服务器地址Value 0: /WebSite1/Default.aspxRequest.ServerVariables["Path_Info"] 客户端提供的路径信息Value 0: /WebSite1/Default.aspxRequest.ServerVariables["Appl_Physical_Path"] 与应用程序元数据路径相应的物理路径Value 0: C:\Docum 阅读全文
posted @ 2011-11-06 22:02 94cool 阅读(366) 评论(0) 推荐(0) 编辑
摘要:在复杂的业务应用程序中,有时候会要求一个或者多个任务在一定的时间或者一定的时间间隔内计划进行,比如定时备份或同步数据库,定时发送电子邮件,定期处理用户状态信息,支付系统中定期同步异常账单等等,我们称之为计划任务。实现计划任务的方法也有很多,可以采用SQLAgent执行存储过程,采用Windows任务调度程序来实现,也可以使用Windows服务来完成我们的计划任务,这些方法都是不错的解决方案。但是,以上这些都需要有服务器的权限才能进行,而对于虚拟主机客户使用的Web应用程序来说,这些方法实现起来并不是很简单的,主机服务提供商或者不能直接提供这样的服务,或者需要你支付许多额外的费用。 看过一些这方 阅读全文
posted @ 2011-11-04 21:54 94cool 阅读(321) 评论(0) 推荐(0) 编辑
摘要:from:http://chenge.diandian.com/post/2011-10-30/6366412动态应用,是相对于网站静态内容而言, 是指以c/c++、php、Java、perl、.net等 服务器端语言开发的网络应用软件,比如论坛、网络相册、交友、BLOG等常见应用。动态应用系统通 常与数据库系统、缓存系统、分布式存储系统等密不可分。大型动态应用系统平台主要是针对于大流 量、高并发网站建立的底层系统架构。大型网站的运行需要一个可靠、安全、可扩展、易维护的应用系统平台做为支撑,以保证网站应用的平稳运行。大型动态应用系统又可分为几个子系统:l Web前 端系统l 负 载均衡系统l 阅读全文
posted @ 2011-11-04 09:43 94cool 阅读(252) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示