Reusing data controls

V

Vik

I use the same dataadapters and datasets on a few aspx pages. Currently I
create these data controls on each page. Is it possible to create these
controls only once and then use them on the different pages?

Thanks.
 
G

Guest

Everything is torn down and rebuilt with each new page, so the only way to
"create once" is to persist them across the pages--i.e. use session
variables. For a dataadapter, that's likely not worth the trouble, but for a
dataset it might be (depending on how large it is, how intense the i/o,
whether you want to keep it at the application level, etc.).
 
V

Vik

I meant reusing the data controls in design time, not in run time. That is
creating the data controls in one place and referring to them in other
pages. Now if I redesign a table in a database I have to recreate the
dataadapters and datasets in all the pages that use that table. I'm looking
for a way to make these changes only once in one place.

Vik
 
G

Guest

Sorry, I'm not much help there. I always roll my own dataadapters at
run-time, and I don't strongly type the data.
 

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