protected void loadinternshipdata() { SqlConnection con = new SqlConnection("Data Source=ja-pc\\sqlexpress;Initial Catalog=Internship;Integrated Security=True;Pooling=False"); con.Open(); SqlCommand cmd3 = new SqlCommand("select * from Internship where CompanyID=" + Convert.ToInt16(Session["CompanyID"].ToString()), con); SqlDataAdapter daa = new SqlDataAdapter(cmd3); DataTable dtt = new DataTable(); daa.Fill(dtt); if (dtt.Rows.Count > 0) { DropDownList3.SelectedItem.Text = dtt.Rows[0]["Country"].ToString(); DropDownList4.SelectedItem.Text = dtt.Rows[0]["State"].ToString(); } }
if (DropDownList4.SelectedItem.Text == ?) { yourfunction(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)