Posts Tagged “web.config”

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

September 23 2010 18 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 »