How to assign the data to controls on fly

Posted by Vlspavan under ASP.NET on 2/24/2012 | Points: 10 | Views : 1402 | Status : [Member] | Replies : 0
I have an object in which i would get the column names and values. the traditional way of assigning the column value to a control would be like creating an object and assign to the controls.

test t=new test()

test(0)=textbox1.text -> old fashion like wise if i have to assign to 100 controls, boring job.

Can we assign dynamically without doing test(0)=textbox1.text manually.
Note: A user would define the control id.

Can we do something else to reduce the code, in my case i have almost 200 controls to which i should assign the values.


(No response found.)

Login to post response