Author: JAYHAWKER | Posted on: 11/10/2008 7:40:05 PM | Views : 274

I have ten textboxes on a form with the only difference in the name being the number between 1 and 10 in the middle of the name such as:

Asset1Textbox

Asset2Textbox

Asset3Textbox

Asset4Textbox

etc.

In codebehind I am using the datareader to forward search through records of a table, and when I find an item with a match, I want to add the text to the textbox.  After I find a match for the

first textbox, I want the code to aumatically add text to the next incrementing each time by 1. I have done the following.

Dim strSQL As String = "tblPhotoSubjectSelectCommand& ...

Go to the complete details ...