To get the value into the textbox when when particular item is selected in dropdown list
-
Hello, I am having a table in my databse with columns ACCOUNT_CODE NARRATION i filled dropdown list with account code values from the database. now my question is: when i select the p[articular item in the dropdown list, the narration textbox must be filled from the database based on the selected item. Plz,help me.... Thanks in advance :)
-
Hello, I am having a table in my databse with columns ACCOUNT_CODE NARRATION i filled dropdown list with account code values from the database. now my question is: when i select the p[articular item in the dropdown list, the narration textbox must be filled from the database based on the selected item. Plz,help me.... Thanks in advance :)
Did you struck somewhere ? You said you have added values from the database to dropdownlist. In DropDownList1_SelectedIndexChanged event, you can write code for creating textbox dynamically, bind it with database value and add it to the form. Dim txt As New TextBox() txt.Text = "Sample value from the database" Me.form1.Controls.Add(txt) Make the controls AutoPostBack property as "True".
Education is not a way to escape poverty — it is a way of fighting it.