Link to home
Create AccountLog in
Avatar of Billy Ma
Billy MaFlag for Hong Kong

asked on

C# ASP Dropdown List Update

If I add a submit button below, how can I get all the values above
and then update one by one to the database?

Should I give an id for each dropdown list?
and other solution?
application.jpg
ASKER CERTIFIED SOLUTION
Avatar of robasta
robasta
Flag of Zimbabwe image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Billy Ma

ASKER

no, my table was written myself.
Test.aspx.cs
Test.aspx
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
chintanpshah:

I have got no idea how to use because I have fixed number of columns, but each column's data is stored in different tables. all the data on the right, is depending on the company id and the process order.

OK, if you guys could send me a very simple exmaple that can get value from the database, and then make the drop down list as selected if the value is the same as the value got from the database.
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Hey, this is my another question, I have described how my data stored in the database
https://www.experts-exchange.com/questions/26713730/C-ASP-NET-loop-and-HTML.html

I hope someone can help!
Is it really I have to use GridView?

Is it possible to use the ASP.NET table? then I add thing to that table dynamically?
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
I cannot have a fixed 5 columns for the year.
Thanks