Search code examples
asp.netsharepointweb-partsembedded-resource

Embedded Resources and ASPX pages


Is it possible to embed an aspx page (self contained, no seperate codebehind file) into an assembly, in this case a SharePoint web part, and have it still act as an aspx file when called via the resource url?

Regards Moo


Solution

  • no as such. however you can change you web part to a user control and enbed that in a webpart and a a aspx file.

    Google for "user Control Web Part"

    OR

    you can look at "son of smartpart" but I don't like this approach. not very pure.

    OR

    Leave it as a aspx page and use the page viewer web part to load the aspx page in an iframe from sharepoint.