Hi i have 4 column in database named as NAME,EMAIL,PHONE,ADDRESS.
NAME EMAIL PHONE ADDRESS
subhu [email protected] 962944 123,nagar
and also 4 asp textbox. when i focus Name text box, i need auto
complete option also when i select that particular name, the
corresponding EMAIL text ,PHONE ,Address data to be fiiled automatically
inthe corresponding text box. Pls Could any one help me out. Thank U
advance

Madhu KRank #1,514 · 1.1K reputationPosted Jan 6, 2011, 7:12 PM EST
http://www.asp.net/ajax/ajaxcontroltoolkit/samples/autocomplete/autocomplete.aspx
On name textbox textchanged event once you enter name hit the db get the values and fill the other textboxs.
sangmesh sangulage34 reputationPosted Jan 6, 2011, 7:19 PM EST
you can use auto complete option in text box is true. or you can use Ajax auto complete Control.
and for second you can use textbox change event in that you can retrive the values of selected textbox value form datbase.
let me know if i am wrong.
SUBRAMANI S12 reputationPosted Jan 6, 2011, 8:00 PM EST
Madhu KRank #1,514 · 1.1K reputationPosted Jan 6, 2011, 9:02 PM EST
Check the code and change accordingly public void txtChanged(object sender, EventArgs e) { SqlConnection SqlCnn = new SqlConnection(ConfigurationManager.AppSettings["ConnectionString"]); SqlCommand SqlCmd = new SqlCommand(); SqlCmd.CommandType = CommandType.Text; SqlCmd.Connection = SqlCnn; SqlCnn.Open(); SqlCmd.CommandText = "select * from table where name=@name"; SqlParameter name1 = new SqlParameter("@name", SqlDbType.Int); name1.Value = DataBaseIDp; SqlCmd.Parameters.Add(name1); SqlDataReader Sqldr = SqlCmd.ExecuteReader(); while (Sqldr.Read()) { addresstextbox.Text=Sqldr["address"].ToString(); phonetext.Text=Sqldr["phone"].ToString(); emailtext.Text=Sqldr["email"].ToString(); SqlCnn.close(); }SUBRAMANI S12 reputationPosted Jan 6, 2011, 10:15 PM EST