Is it possible to show a Windows User Control in Sharepoint?

Hi, I have a website that has a control that is shown in a web page. Is it possible to add this user control in a Sharepoint page

Doing it in a aspx or ascx page is easy, but then when I try in Sharepoint I get an empty control.

Any help is greatly appreciated.

Xavier



Answer this question

Is it possible to show a Windows User Control in Sharepoint?

  • el-chema

    I could be wrong, but I believe you want to encapsulate your user control within a custom ASP 2.0 Web Part, then have Sharepoint use your newly created web part. Check this out:

    http://msdn2.microsoft.com/en-us/library/e0s9t4ck.aspx


  • Ken Fleming

    What is a smart part
  • Muhammad Essa

    Chris is on the right track.

    Wrapping it in a web part also allows you to set properties on your control through the personalization engine.. something to think about when you build the we part.



  • Fiander

    xavito,

    The smartpart by Jan Tielens will do this for you with minimal configuration required on your part. :-)

    http://workspaces.gotdotnet.com/smartpart

  • tssweb

    fwiw, I just used the latest release of SmartPart in a publishing site and I have to say that it rocks. Thanks Jan for the awesome product and time savings.


  • Nasir_khan_persistent

    Thanks! I'll give it a shot!
  • Is it possible to show a Windows User Control in Sharepoint?