2009年8月12日

Top 5 Firefox Add-Ons for Web Designers

摘要: Top 5 Firefox Add-Ons for Web DesignersWhether you use Firefox as your main browser or not, you won't want to miss using some of the great tools it has available for web designers. There are so many f... 阅读全文

posted @ 2009-08-12 11:01 sky老杨 阅读(312) 评论(0) 推荐(0) 编辑

2008年11月20日

sql2000中ntext字段字符串分割函数

摘要: 将ntext字段按照指定字符串分割成数据表 如,ntext字读, 11111111111111111111111111\n 22222222222222222222222222\n 33333333333333333333333333\n 转换为: 1,11111111111111111111111111 2,22222222222222222222222222 3,333333333333333... 阅读全文

posted @ 2008-11-20 23:37 sky老杨 阅读(425) 评论(0) 推荐(0) 编辑

2008年11月9日

怎样快速输出linq的sql语句

摘要: throw new Exception(db.GetCommand(q).CommandText); q为var的变量 阅读全文

posted @ 2008-11-09 22:07 sky老杨 阅读(409) 评论(0) 推荐(0) 编辑

2008年10月23日

asp.net缓存机制转

摘要: 缓存 缓存机制 页输出缓存:保存页处理输出,下次重用所保存的输出 应用程序缓存:允许缓存所生成的数据,如DataSet ㈠页输出缓存 1、页输出缓存的几中形式 ① Location指定在哪个地方缓存,Any任何地方都缓存。 60秒以内看到的都是一样的了。 ②还可在配置文件里写,然后在页面调用配置文件的缓存名称。 ③用编程的方式: Response.Canche.SetExpires(DateTim... 阅读全文

posted @ 2008-10-23 16:37 sky老杨 阅读(604) 评论(1) 推荐(0) 编辑

2008年10月22日

IE6,IE7,FF | CSS + DIV 兼容问题综合解决方案CSS HACK【转】

摘要: 一、CSS HACK 以下两种方法几乎能解决现今所有HACK. 1、 !important 随着IE7对!important的支持, !important 方法现在只针对IE6的HACK.(注意写法.记得该声明位置需要提前.) 2、IE6/IE77对FireFox *+html 与 *html 是IE特有的标签, firefox 暂不支持.而*+html 又为 IE7特有标签. 注意: *+h... 阅读全文

posted @ 2008-10-22 12:50 sky老杨 阅读(207) 评论(0) 推荐(0) 编辑

2008年9月20日

Gridview中数据绑定Dropdownlist 组件默认值为空null的问题

摘要: 在gridview中绑定Dropdownlist,遇到过如下错误吗? “DropDownList2”有一个无效 SelectedValue,因为它不在项目列表中。 参数名: value 解决办法: ' AppendDataBoundItems=true> 无分组 ... 阅读全文

posted @ 2008-09-20 19:32 sky老杨 阅读(1469) 评论(0) 推荐(0) 编辑

2008年9月11日

Linq to XML读取xml的方法

摘要: 添加应用:using System.Xml.Linq; 读取xml最重要的要知道xml是那种写法,因为linq已经把读取方式封装的相对傻瓜了,要有问题一定xml的结构问题。 第一种写法: ddddddddd fffffffff ddddddddddddddddd Linq语句: XDocument xdoc= XDocument.Load(Serve... 阅读全文

posted @ 2008-09-11 21:37 sky老杨 阅读(3361) 评论(2) 推荐(1) 编辑

2008年9月10日

LINQ to SQL批量删除更新

摘要: sql语句法删除 ItemDataContextdb =newItemDataContext(); db.ExecuteCommand( "DELETE FROM Item WHERE [CreateTime] item.CreateTime item.CreateTime newItem { Introducti... 阅读全文

posted @ 2008-09-10 21:33 sky老杨 阅读(2482) 评论(0) 推荐(0) 编辑

使用linq to sql产生数据源,DataPager不起作用解决办法!

摘要: 如果你通过 var procduct=from p in db.products select p; ListView1.DataSource =procduct; ListView1.DataBind(); 使用DataPager没反应,添加PagePropertiesChanging事件处理就ok了! protected void ListView1_PagePropertiesCha... 阅读全文

posted @ 2008-09-10 21:11 sky老杨 阅读(293) 评论(0) 推荐(0) 编辑

2008年9月9日

解决网站程序的路径一致问题

摘要: Request.ApplicationPath在网站根目录时返回“/” 在虚拟目录时返回“/虚拟目录”。由此带来的程序路径问题多多。 解决办法: 1、 2、在web.config设置公共变量,通过ConfigurationSettings.AppSettings["BaseUrl"]访问变量。 倾向使用后者,应用范围较广,而且还有一定的版权加密意思,呵呵。 Path... 阅读全文

posted @ 2008-09-09 12:30 sky老杨 阅读(295) 评论(0) 推荐(0) 编辑

导航