Forum Moderators: open
SqlConnection Con = new SqlConnection("Server=web;uid=sa;pwd=; database=followProduct");
SqlDataAdapter adp = new SqlDataAdapter("SELECT * FROM PRODUCTS",Con);
DataSet ds = new DataSet();
adp.Fill(ds);
MyDataGrid1.DataSource = ds;
MyDataGrid1.DataBind();
I want to compare two fields that is PRODUCTS_CODE of the PRODUCTS table and is DETAIL_ID of the DETAIL table.
And also I want to show DETAIL_NAME fields in DropDownListBox.
if PRODUCTS_CODE equal DETAIL_ID than selected DETAIL_NAME which shown the DropDownListBox. How can I do it?
Can you have any Example or documant? Please Help?