Asp.net Usercontrols on Sharepoint with the help of Smart parts
Couple of years back i worked on share point 3.0 development, where the scenario was to display a data grid on the share point, I found a way to achieve the same by using the smart parts, you need to create an asp.net web application, place the dll in the bin directory of the sharepoint website folder. create a folder by name UserControl and place all the ascx files in the foldeer created at the root c:\inetpub\wwwroot\wss\portno\Usercontrols
open the web.config file and change the access level from WS_Minimum to WS_Medium,
open the sharepoint site, click on the webparts gallery, server controls, you will be able to see smart parts, drag and drop on the webpart zone, and then give the user control location name like ~/Usercontrols/yourUserControl.ascx,
if the above steps are performed satisfactorily then you will be able to achieve the above objective.
if you are using session objects in your asp.net application, then you have to set this in the web.config file of your site, look for enablesessionstate = false, change it to true .
The above procedure was for sharepoint server 3.0
in my next post i will write about MOSS.
Thanks!
Posted: July 1st, 2008 under Uncategorized.
Tags: asp.net, MOSS, smart parts, user controls