随笔 - 224  文章 - 12  评论 - 13  阅读 - 45万
04 2010 档案
在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) 评论(0) 推荐(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) 推荐(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

点击右上角即可分享
微信分享提示