摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.or 阅读全文
posted @ 2012-04-12 22:33 刘强 cnblogs 阅读(10052) 评论(2) 推荐(0) 编辑
摘要: aspx代码代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<%@PageLanguage="C#"AutoEventWireup="true"CodeFile="GridView.aspx.cs"Inherits="GridView"%&... 阅读全文
posted @ 2010-08-28 10:01 刘强 cnblogs 阅读(691) 评论(0) 推荐(1) 编辑
摘要: [代码] 阅读全文
posted @ 2009-10-04 16:48 刘强 cnblogs 阅读(255) 评论(0) 推荐(1) 编辑
摘要: [代码]CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--setANSI_NULLSONsetQUOTED_IDENTIFIERONgoALTERtrigger[dbo].[subCompanyCount]on[dbo].[CompanyInfo... 阅读全文
posted @ 2009-09-25 09:43 刘强 cnblogs 阅读(339) 评论(0) 推荐(1) 编辑
摘要: 转自:http://hi.baidu.com/liulin0712/blog/item/37ad9118b70e860e35fa41d3.html大家存在5点误区: 1、sql注入比较难防,需要替换select,delete等一打字符 其实对于字符型替换再多都没有替换单引号为两个单引号来的好!对于数字型替换再多都没有用,一定要类型转换。 2、忽略DropDownList传来的东西 其实是不对的,一... 阅读全文
posted @ 2009-08-03 14:59 刘强 cnblogs 阅读(649) 评论(0) 推荐(1) 编辑
摘要: 将页面缓存10分钟,如果当指定表中的页容被修改时,则缓存立即过期启用数所库和表的缓存依赖aspnet_regsql.exe -S <Server> -U <Username> -P <Password> -ed -d ModernService aspnet_regsql.exe -S <Server> -U <Username> -P ... 阅读全文
posted @ 2009-06-29 17:06 刘强 cnblogs 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 添删改查功能,数据库设计都完成研究了好长时间,终于完善了。部分代码使用了别人的编码实现的http://files.cnblogs.com/honghu3000/无限级分类.rar 阅读全文
posted @ 2009-05-25 17:38 刘强 cnblogs 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 匹配中文字符的正则表达式: [\u4e00-\u9fa5]Regex r = new Regex("[\u4e00-\u9fa5]",RegexOptions.Multiline); MatchCollection matchs = r.Matches(this.ClassID.SelectedItem.Text); string aa=""; foreach (Match m in matchs... 阅读全文
posted @ 2009-05-18 18:33 刘强 cnblogs 阅读(1397) 评论(5) 推荐(0) 编辑
摘要: /// <summary> /// TextBox清空,重置 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Button2_Cl... 阅读全文
posted @ 2009-04-03 10:58 刘强 cnblogs 阅读(482) 评论(0) 推荐(0) 编辑
摘要: <asp:TextBox ID="CompanyName" runat="server" AutoPostBack="True" ontextchanged="CompanyName_TextChanged"></asp:TextBox> </td> <td wi... 阅读全文
posted @ 2009-04-03 10:58 刘强 cnblogs 阅读(151) 评论(0) 推荐(0) 编辑