62,041
社区成员
发帖
与我相关
我的任务
分享
//一般用这个 ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
SqlConnection conn = new SqlConnection(ConfigurationManager.AppSettings("dbconnectionstring"));
SqlCommand cmd = new SqlCommand("select * from tb where 商品名称=Keyword.Text", conn);
conn.Open();
SqlConnection conn = new SqlConnection(ConfigurationManager.AppSettings("dbconnectionstring"));
SqlCommand cmd = new SqlCommand("select * from tb where 商品名称=Keyword.Text", conn);
conn.Open();