FormView Control

B

Bob Peek

I would like to insert some number of Form View Controls onto a single web
page in the code behind file. The number to be determined at run time. Is
this possible?

If so, Can I create a user control that incorporates a formview control, a
sqldatasource control and other controls and then insert some number of those
controls into a single web page.

Ultimately, I will need to change a parameter in the sqldatasource select
query to correctly populate the fields in the formView Control.
 
T

Teemu Keiski

Hi,

I'd think you could utilize Repeater for that as it can repeat anything.
Just give the "virtual" data source to it (for example a dummy array having
the runtime-determined number of items) and databind it. In the ItemTemplate
you'd have what you'd want to repeat that n times. And yes, it could be a
user control just as well, in the ItemTemplate of a Repeater.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top