Archive for September 23rd, 2010

SharePoint 2010 Dynamic Compilation of .aspx and .ascx Files with .NET 3.5

September 23 2010 11 comments

What’s the problem?

One of our colleagues, Petri, had a problem with using extension methods in his Visual Web Parts user control (.ascx file). He had developed some extension methods and tried to use them in user control:

<%= DateTime.Now.SomeExtensionMethod() %>

And all he got was this error:

Compiler Error

Read more »