Are user controls the best way to provide controls for WebParts?

J

jm

Some of the articles I have read are old, and I just don't know if
user controls .ascx are still used widely. I know they can be
created, but if very few use them today it makes me think I shouldn't
either or that there is some better way. I have used them in
tutorials with web parts, but the articles were several years old.

What I have in reality is a gridview. Would it be bad practice to put
that gridview in a user control and drop that usercontrol .ascx in a
webpart? If so I would end up with having many datacontrol items in
one page, all their separate user control. It is a cms, but again, is
this the "right way" to do it? I don't know another way I would do
it, but that is besides the point.

Thank you.
 

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,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top