Microsoft
Software
Hardware
Network
Question : Dropdownlist change, does not change textboxes
Hi,
Environmnet: .net 3.5
Type : Web application
I have a drop down list that is bound to a column in a table ( works fine). What I want to do is when the drop down list is changed, it updates the text boxes on my webform for the specific values that relate to that selected value within the drop down list ( from the database table)
I was able to get some code off this website to see if I can use it to help me, but I am a bit stuck:
(A) Where can I look at code that will show me how to update the textboxes, once the value of the drop down list is changed.
(B) Should I use java script for this part?
(C) the below is populating the values in the textboxes, I want to change it to the values from the database table, how do I do that?
txtProddescrip.Text = DropDownList1.SelectedInde
x
txtProdmanu.Text = DropDownList1.SelectedInde
x
txtProdname.Text = DropDownList1.SelectedInde
x
txtNoinstock.Text = DropDownList1.SelectedInde
x
txtLength.Text = DropDownList1.SelectedInde
x
Thanks
Answer : Dropdownlist change, does not change textboxes
Ok so is it working?
you mean hanging....as just stopping until you press F5 or F10 or >(run arrow) or not moving even after pressing any of those keys...
So where are we now ...any further movement?
Random Solutions
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI<wbr />_AS" and "Latin1_General_CI_AS" in the equal to operation
Error 405 method not allowed when using WebClient()
vb.net 2.0 winforms - how to detect unsaved data in databound fields?
Creating a comma separated list as a Function to be used in a Totals/Group By query
One report column in Italics
convertin CString to const char*
Import sent items
can't get wmi asusmanagement object
how to control the veiw of a subreport?
I have a text box on an access 2003 form, w/key behavior = new line in field text w/scroll out box