daugust daugust

Niner since 2007


  • Building ASP.NET Web Parts for Windows SharePoint Services 3.0

    Great demo, but here's my dilemma: I'd really like to leverage our existing ASP.NET user controls by writing a simple web part (as described in this demo) but that calls Page.LoadControl() to load one of our ASP.NET user controls.

    I've seen lots of examples on how to create a simple web part that outputs some simple text, but I've been stymied when it comes to finding any good examples of the LoadControl() technique.  I've actually done this from another example I found, but I keep getting this error:

    Assemblies that implement ASP.NET Web Parts and are installed into a partially trusted location, such as the bin directory, must be compiled with the AllowPartiallyTrustedCallersAttribute set for import to succeed.

    Any thoughts??