SqlCommand cm = new SqlCommand("dbo.updateu", cn);
解决方案 »
- 求助!!!求区域内数值的绝对偏差的平均值
- 数据怎么都到一列里边去了?
- 超链接传值,可以传数组或集合么?
- js否返回false了按钮还执行PostBackUrl怎么办
- 急
- ASP.NET大型OA源码转让,C#+SQL SERVER
- 支付宝接口调试错误,帮忙分析下,急!!!!!!!!!!!!
- 江湖救急。 关于ASP.NET环境操作Word文档.
- 在操作SQL数据库的时候,strConn="server=localhost;uid=sa;pwd=;database=wux",总说Not associated with a trusted SQL Server connect
- 怎样更新DataList中的textBox的内容?
- VSS管理存储过程
- 这样的存储过程那里错了!
SqlConnection cn = new SqlConnection(strConnection); //监控:cn = {System.Data.SqlClient.SqlConnection} SqlCommand cm = new SqlCommand("dbo.updateu", cn); //监控:cm = System.Data.SqlClient.SqlCommand}
cm.CommandType = CommandType.StoredProcedure;
cm.Connection.Open();
Guid userID; //userID=00000000-0000-0000-0000-000000000000} string userLogName,username, sex, phone, mobilephone; //这些都是null
userID = new Guid(GridView1.Rows[e.RowIndex].
Cells[0].Controls[0].ToString());
userLogName = ((TextBox)GridView1.Rows[e.RowIndex].
Cells[1].Controls[0]).Text;
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "northwind_OrdersPaged";
cmd.Parameters.Add(new SqlParameter("@PageIndex",SqlDbType.Int));
cmd.Parameters["@PageIndex"].Value = 1;
cmd.Parameters.Add(new SqlParameter("@PageSize", SqlDbType.Int));
cmd.Parameters["@PageSize"].Value = 10;
cmd.CommandType = CommandType.StoredProcedure;
cmd.Connection = conn;
cmd.Connection.Open();
SqlDataReader dr = cmd.ExecuteReader();
cmd.excutenoquery '具体不记得了,但似乎你要执行一下