Oga M wrote:
1.Dropdown to display the names,when I select the name inside the dropdown automatically display the email address of that person inside the txetbox next to the drop down.
As I replied here, In form_load event, SqlConnection dbConn = new SqlConnection(connectionString); dbConn.Open(); SqlDataAdapter da = new SqlDataAdapter("SELECT names,email FROM table1", dbConn); DataSet ds = new DataSet(); da.Fill(ds); dbConn.Close(); DropDownList1.DataSource = ds.Tables[0]; DropDownList1.DataTextField = "names"; DropDownList1.DataValueField = "email"; DropDownList1.DataBind(); protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { txtEMail.Text = DropDownList1.SelectedValue; }
Oga M wrote:
2.When I douple click the name inside the dropdown,the name to be display inside the listbox,and the user must have an access to delete them.
I think it's very strange requirement...
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)