I have dynamically created labels which has id as "label+i
". Those labels get their text from again dynamically created textboxes with id's as ""text"+i
". I get total numbers of textbox from user. What I'm trying is if I get 12 labels I want to have 3 row in total. All rows has 4 columns in db. Max number of label will be 28 or 32 so there will not be a hundred of labels.
For example if I have
label1, label2, label3, label4,label5,label6,label7,label8
then first row of database will be
col1=label1
col2=label2
col3=label3
col4=label4
and second row will be
col1=label5
col2=label6
col3=label7
col4=label8
Since I don't know how to separate rows in a single query execution I couldn't think of a good algorithm. I need your help guys :)
thanks in advance.