2012年1月11日
摘要: 新浪微薄分享:http://v.t.sina.com.cn/share/share.php?url=file%3A%2F%2F%2FC%3A%2FDocuments%2520and%2520Settings%2FAdministrator%2F%E6%A1%8C%E9%9D%A2%2Findex.html%23281447-tsina-0-10060- QQ微薄分享:http://share.v.t.qq.com/index.php?c=share&a=index&url= admin&title=&appkey=801cf76d3cfc44ada52ec131 阅读全文
posted @ 2012-01-11 14:32 风华之恋 阅读(426) 评论(0) 推荐(0) 编辑
摘要: private void CheckImage(string path) { MyService.Services ss = new MyService.Services(); DirectoryInfo info = new DirectoryInfo(path); foreach (var item in info.GetDirectories()) { string name = item.Name; foreach (var items in item.GetFiles()) { //name = info.Name; string extension = items.Extensi. 阅读全文
posted @ 2012-01-11 14:15 风华之恋 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 创建大图小图void CreatBSimg(string extension,string path,string filename,string imgs) { #region 得到图片尺寸 int imgWidth = 0; int imgHeight = 0; string[] imgExtension = new string[] { ".jpg", ".gif", ".png", ".bmp", ".jpeg" }; foreach (string item in imgExtensi 阅读全文
posted @ 2012-01-11 14:12 风华之恋 阅读(549) 评论(0) 推荐(0) 编辑
摘要: <input id="rbtn_Select" runat="server" type='radio' name='rbtn_Select' value= '<%#Eval("guid") %>' onclick="changeName(this)" /><script> //让所有radio取消选中 function changeName(a) { var inputs = document.getElementsByTagNam 阅读全文
posted @ 2012-01-11 14:05 风华之恋 阅读(537) 评论(0) 推荐(0) 编辑
摘要: bool check(string content, ArrayList str) { for (int i = 0; i < str.Count; i++) { if (content.LastIndexOf(str[i].ToString()) != -1) { return true; } else return false; } }content为原文本str为需要过滤的集合 阅读全文
posted @ 2012-01-11 14:01 风华之恋 阅读(99) 评论(0) 推荐(0) 编辑
摘要: public void CreateExcels(string xlsname, string xlsaddress,DataTable tbdate,string culname, bool islist) { ExcelEngine excelEngine = new ExcelEngine(); IApplication application = excelEngine.Excel; IWorkbook workbook = application.Workbooks.Open(HttpContext.Current.Server.MapPath(xlsaddress), Excel. 阅读全文
posted @ 2012-01-11 10:12 风华之恋 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 前台tr样式设置<tr class='<%# GetCssName(Container) %>'>Container为数据源的容器,是一个属性 /// <summary> /// listview隔行不同样式 /// </summary> /// <param name="container"></param> /// <returns>CssName</returns> public string GetCssName(object container) { i 阅读全文
posted @ 2012-01-11 10:09 风华之恋 阅读(399) 评论(0) 推荐(0) 编辑