在GridView中截取一定长度的方法--收藏
摘要:方法1、你写一个方法,到页面上: StrLength 这个方法就是处理字符串的,写到cs文件中。 protected string StrLength (string str) { if (str.Length > 10) { return str.Substring(0, 10) + "..."; } else { return str; } } GridView 中用模板列 <as...
阅读全文
posted @
2010-04-11 14:14
雪夜
阅读(423)
推荐(1) 编辑
用SQL完成條件式查詢--[收藏-From 黃偉榮]
摘要:因為覺得每次要用條件式查詢很煩(如範例一),就想有沒有更方便的用法,試出一種方法還不錯,分享給大家。測試環境DBMS:Sql Server 2008 ExpressDB:AdventureWorksTable:Sales.SalesOrderDetail(Count:121,317) 情境對Sales.SalesOrderDetail的OrderId與ProduceId與SaleDate這三個欄位...
阅读全文
posted @
2010-04-02 08:28
雪夜
阅读(297)
推荐(0) 编辑