hi forum
i tried to create a set of form fields in a loop, hence the id’s were something like: fname1, lname1, city1, fname2, lnam2, city2 etc. Now what i need is to loop through the values so that i can store them in a database.
Anyways of doing this plzz suggest!!!!!!!!!!!
i tried to create a set of form fields in a loop, hence the id’s were something like: fname1, lname1, city1, fname2, lnam2, city2 etc. Now what i need is to loop through the values so that i can store them in a database.
Anyways of doing this plzz suggest!!!!!!!!!!!

Hi , use the and try the below code hope this as answer to ur prob ,this code will return a Control object that you will need to cast into whatever type control you are dealing with. If the control was not found, it will return null .
the code is as:
ParentControl.FindControl(“fname” + i.ToString())
the code is as:
ParentControl.FindControl(“fname” + i.ToString())
Leave a Reply
You must be logged in to post a comment.