c#
quanguoquan
这个作者很懒,什么都没留下…
展开
-
增删改防止SQL注入
//进行增删改时防止SQL注入 public bool Insert(string caName) { bool flag=false; string sql="insert into category (name) values('"+caName+"')"; int i=sqlhelper.ExecuteNonQuery(sql); if(i>0) { ...原创 2010-12-31 21:41:10 · 169 阅读 · 0 评论 -
文件的读写操作
protected void Button1_Click(object sender, EventArgs e) { //创建文件 //方法一:利用FileStream类和StreamWriter类创建 //string path = @"c:\test.html"; //FileStream fs = new Fi...原创 2011-01-02 22:04:49 · 61 阅读 · 0 评论 -
简单留言管理
//简易留言管理,使用repeater控件绑定 <table align="center" border="1" cellpadding="0px" cellspacing="0px" width="751px"> <tr> <td colspan原创 2011-01-06 19:36:57 · 801 阅读 · 0 评论