随笔分类 - ASP.net
摘要:代码也可以在 clientClick属性里面写 js代码
阅读全文
摘要: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
阅读全文
摘要:当鼠标放在gridview上某一行时,颜色改变,离开时颜色回复,原来这种效果就叫光棒效果 - - 我们可以在girdview的数据绑定后事件上通过js代码去实现它:[代码]
阅读全文
摘要: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"
阅读全文
摘要:三套路-----增删改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
阅读全文

浙公网安备 33010602011771号