随笔分类 -  ASP.net

摘要:代码也可以在 clientClick属性里面写 js代码 阅读全文
posted @ 2010-11-08 23:27 aShu123 阅读(203) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 public class DBHelper 2 { 3 public static string strConn = "server=.;database=MyBookShop;uid=sa;pwd=sa"; 4 5 /// <summary> 6 /// 查询受影响的行数 7 /// </summary> 8 /// <param 阅读全文
posted @ 2010-10-25 23:45 aShu123 阅读(368) 评论(0) 推荐(0)
摘要:当鼠标放在gridview上某一行时,颜色改变,离开时颜色回复,原来这种效果就叫光棒效果 - -   我们可以在girdview的数据绑定后事件上通过js代码去实现它:[代码] 阅读全文
posted @ 2010-10-25 23:41 aShu123 阅读(354) 评论(1) 推荐(0)
摘要:C#调用存储过程笔记,比较简洁的写法:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 SqlCommand cmd =new SqlCommand(); 2 cmd.Connection=DBHelper.conn; 3 cmd.CommandType=CommandType.so.. 4 cmd.CommandText="存储过程名"; 5 cmd.Parameters.Add("@id" 阅读全文
posted @ 2010-10-10 22:12 aShu123 阅读(233) 评论(0) 推荐(0)
摘要:三套路-----增删改CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 using System.Data.SqlClient; 2 3 SqlConnection conn = new SqlConnection("xxx"); 4 5 6 string sql = "xxx"; 7 8 SqlCommand comm = new SqlCommand(sql, conn); 9 10 c 阅读全文
posted @ 2010-10-10 22:05 aShu123 阅读(774) 评论(0) 推荐(1)