sanketsawant
New member
- Joined
- Feb 4, 2010
- Messages
- 2
- Programming Experience
- 1-3
i have one form where textbox get added dynamically.
i want to name them as like array element.so i cant refer them from for loop.
e.g txtname(1).text,txtname(2).text,txtname(3).text
i want to achieve following thing
i newbie to .net,so kindly help me to solve this issue.
thanks in advance
Sanket
i want to name them as like array element.so i cant refer them from for loop.
e.g txtname(1).text,txtname(2).text,txtname(3).text
i want to achieve following thing
VB.NET:
for i=0 To 10
cmd.commandtext("insert into tablename(name)values('"& txtname(i).text &"')")
con.Open()
cmd.ExecuteNonQuery()
con.Close()
Next
i newbie to .net,so kindly help me to solve this issue.
thanks in advance
Sanket