A quickie

bharatasp

Member
Joined
Mar 30, 2003
Messages
9
Location
India
Hi friends
I think you people will find it a very basic question but unfortunately i m unable to do it.
What i m trying to do is :
i have to accept a field : number of cycles
on the basis of value entered by user, i have to create a table with same number of rows as the value entered.
this row will be having some controls and i need to save the values entered in database.
I can do it using response.write in a while loop but i dont want to do so. is there a better idea?
what i tried to test is :

dim i as Integer
Dim oRow As HtmlTableRow
for i= 1 to cInt(txtCycle.text)
oRow = New HtmlTableRow()
oRow = tblCycle.Rows(2)
tblCycle.Rows.Add(oRow)
next

it doesnt work nor it gives any error

Pls help me out with this:
Thanks
 
I dont understand the database piece? Can you clarify what you are doing? First, I know that you are trying to dynamically create a table based on input from the user. Are you wanting to save this back to a database?
 
Back
Top