string ConStr = @"server=.\SQLEXPRESS;uid=sa;pwd=sa;database=Northwind";
string i = "";
public UpdateForm(string i)
{
InitializeComponent();
this.i = i;
SqlConnection con = new SqlConnection(ConStr);
con.Open();
SqlCommand cmdProductName = new SqlCommand("select ProductName from Products where ProductID=" + i, con);
SqlCommand cmdQuantityPerUnit = new SqlCommand("select QuantityPerUnit from Products where ProductID=" + i, con);
SqlCommand cmdUnitPrice = new SqlCommand("select UnitPrice from Products where ProductID=" + i, con);
string ConStr = @"server=.\SQLEXPRESS;uid=sa;pwd=sa;database=Northwind";
string i = "";
public UpdateForm(string i)
{
InitializeComponent();
this.i = i;
SqlConnection con = new SqlConnection(ConStr);
con.Open();
SqlCommand cmdProductName = new SqlCommand("select ProductName from Products where ProductID=" + i, con);
SqlCommand cmdQuantityPerUnit = new SqlCommand("select QuantityPerUnit from Products where ProductID=" + i, con);
SqlCommand cmdUnitPrice = new SqlCommand("select UnitPrice from Products where ProductID=" + i, con);