Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Reusable webpart in ASP.NET 2.0 and WSS 3.0

  Asked By: Erin    Date: Jan 21    Category: Sharepoint    Views: 1482

I have a webpart that uses SharePoint Object Model which is deployed
on a SharePoint site. Now, I would like to use the same webpart in
ASP.NET 2.0 web application. I am not sure, how the webpart behaves
when I use it in asp.net 2.0 app, since it is referencing sharepoint
object model.

Please let me know how I can make a SharePoint webpart
(System.Web.UI.WebControls.WebPart) reusable in asp.net 2.0 app.



1 Answer Found

Answer #1    Answered By: Rena William     Answered On: Jan 21

If you are using the web  part on an ASP.net 2.0 site  on a SharePoint server no
additional work is needed. If you are using the web part on any other server
then you can not use the SharePoint Object Model in the web part. You would
need to replace any SharePoint functionality with calls to a SharePoint XML web
service instead.

Didn't find what you were looking for? Find more on Reusable webpart in ASP.NET 2.0 and WSS 3.0 Or get search suggestion and latest updates.