Thursday, November 15, 2007

How to show an asp.net User Control on a Sharepoint page

  1. Create a directory to hold the user controls on the sharepoint server under C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES
  2. Move the user control into this directory, this can be uncompiled source code.
  3. Using Sharepoint designer, create a page to display the user control.
  4. Add the user control to the page you created with Sharepoint Designer the same way you would add any user control to a asp.net page.

That's it. Then you should be able to load this page in a browser and display the user control.

0 comments: