VS.NET: Best practices for visually designing DataList controls that will have programmatically load

G

Guest

I am wondering the best and easiest ways to use the VS.NETvisual designer
with data controls that will will be loaded programmatically. For example, I
have two datalist controls, one of which I'm populating from a ArrayList
based off of the filesystem, and one which uses a dynamically built
XmlDataSource.

It is occassionally useful to see the semi-rendered view in the VS.NET
designer.

The hack I'm doing for now is to have a "junk" XML file based off the the
schema that will eventually be dynamically generated, specify that XML file
in the property field for the XmlDataSource in the VS.NET designer to get
the visual display for the control, and remove that reference before
deploying.

What +doesn't+ work is to leave that reference to the junk XML/same schema
in place in the visual designer, and then attempt to programmatically
replace or overwrite the junk value with the programmatically generated
information. I'm puzzled why not.

Is there a better way to handle this then I am managing now?

Thanks,
-KF
 

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,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top