Sample Image :
For Display Image Button:
For Display Image Button:
btnDisplay_Click: conn.Open(); string str1 = "select * from Customer"; string str2 = "select * from Product"; SqlDataAdapter da1 = new SqlDataAdapter(str1,conn); SqlDataAdapter da2 = new SqlDataAdapter(str2, conn); DataSet ds = new DataSet(); da1.Fill(ds,"Customer"); da1.Fill(ds,"Product"); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); GridView2.DataSource = ds.Tables[1]; GridView2.DataBind(); GridView1.Visible = true; GridView2.Visible = true; conn.Close();

Thanks for this simple instructions.
ReplyDeleteInterview Questions
Thanks Ruby. That's a worth comment to boost me up. :)
ReplyDelete