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

Discussion in 'ASP .Net' started by jm, Jun 28, 2008.

  1. jm

    jm Guest

    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.
     
    jm, Jun 28, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. CptDondo
    Replies:
    8
    Views:
    396
    John Murtari
    Jan 24, 2007
  2. Rajeev

    Can anyone provide methe best books for C?

    Rajeev, Mar 14, 2006, in forum: C Programming
    Replies:
    8
    Views:
    277
    Rajeev
    Mar 14, 2006
  3. James Harris

    How best to provide a module

    James Harris, Aug 21, 2008, in forum: C Programming
    Replies:
    6
    Views:
    303
    Stephen Sprunk
    Aug 22, 2008
  4. 123Jim
    Replies:
    18
    Views:
    855
    Rob W.
    Mar 3, 2010
  5. David Thielen

    Best way to provide security when need a WindowsIdentity

    David Thielen, Mar 21, 2006, in forum: ASP .Net Security
    Replies:
    8
    Views:
    235
    Michael Randrup
    Mar 27, 2006
Loading...

Share This Page