Posted on: 10/14/2013 10:34:44 PM | Views : 886

Driving me nuts...I have stripped out any kind of loop, etc and I am down to the bare mins here.  I have created several Checkboxes, Labels, etc dynamically.  I want to be able to change values on the page, submit those and loop through the controls ( the ones I dynamically created on Page Load) grabbing the changes and make an update to the database table.  However, the following only provides the **Conversion from string "cbReqSignOff1" to type 'Integer' is not valid.** error.  I'm guessing someone can simply brow beat me...but, honestly...this is just plain silly.  Also tried, DirectCast, TryCast...and a myriad of other combos assuming that I was a moron.
Dim i As Integer = 1 Dim cb1 = CType(Me.Controls("cbReqSignOff" & i), CheckBox) If cb1.Checked = False Then Response.Write("False") Else Response.Write("True ...

Go to the complete details ...