D
donnet
I come from J2EE and starting to learn ASP.NET.
I want to find a way to display a web form filled with data taken from a SQL
table. I need to repeat the layout of my web form in one single page, each
time with data taken from the SQL table row. I don't want to put those data
rows into a datagrid because I have my own form that I want to populate with
a specific html layout. And I'm not sure the "Repeater" control is a solution
to my problem.
With J2EE, I would have the use of Java Beans where I would loop and store
each table row information into a class bean and then add each bean into an
ArrayList. Then I would pass this ArrayList to my .JSP page (the equivalent
of .aspx) where I would iterate through my ArrayList to get each bean's
methods using a java scriplet tag to put my "for" loop.
How can i do the equivalent of Java beans in ASP.NET? Can someone give me a
sample codes of the .aspx.cs file and .aspx file showing how you can repeat a
web form and populating with information taken from each table row?
Can I use "Repeater" controls to repeat the display of a web form with
labels, tables, textboxes and textareas and being able to loop through data
rows in order to populate the web form?
Thanks a bunch.
I want to find a way to display a web form filled with data taken from a SQL
table. I need to repeat the layout of my web form in one single page, each
time with data taken from the SQL table row. I don't want to put those data
rows into a datagrid because I have my own form that I want to populate with
a specific html layout. And I'm not sure the "Repeater" control is a solution
to my problem.
With J2EE, I would have the use of Java Beans where I would loop and store
each table row information into a class bean and then add each bean into an
ArrayList. Then I would pass this ArrayList to my .JSP page (the equivalent
of .aspx) where I would iterate through my ArrayList to get each bean's
methods using a java scriplet tag to put my "for" loop.
How can i do the equivalent of Java beans in ASP.NET? Can someone give me a
sample codes of the .aspx.cs file and .aspx file showing how you can repeat a
web form and populating with information taken from each table row?
Can I use "Repeater" controls to repeat the display of a web form with
labels, tables, textboxes and textareas and being able to loop through data
rows in order to populate the web form?
Thanks a bunch.