c# - Gather scattered values in a Web-Control from code-behind & add values to Database -


here's scenario.

ui

i have 5 rows , 3 columns table having textboxes in ui. values of each row may or may not entered. consider possibility values in 5*3 tables entered, in code-behind need capture values, bind in control(may list control or array or datarow) , make loop iterated can add values db.

the loop concept there sake - if user didn't enter values in columns. how should accomplish this??

p.s. - inserting values in database afterwords.

use datatable add rows , add them in grid. iterate loop through gridview rows.


Comments