|
SqlCommand cmd = new SqlCommand("ProductComments_List"); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@IndexPage", System.Data.SqlDbType.Int); cmd.Parameters["@IndexPage"].Value = IndexPage; cmd.Parameters.Add("@PageSize", System.Data.SqlDbType.Int); cmd.Parameters["@PageSize"].Value = PageSize; SqlConnection SqlConn=new SqlConnection("连接字符串"); cmd.Connection=SqlConn; SqlConn.Open(); cmd.ExecuteNonquery(); SqlConn.Close();
|