Gunnar Peipman's ASP.NET blog

ASP.NET, C#, SharePoint, SQL Server and general software development topics.

Sponsors

News

 
 
 
DZone MVB

Links

Social

SharePoint: why are my custom content type forms empty?

Okay, this is the hit of the month for me. Well, we had to use custom forms with some content types. Everything went fine until all those custom forms showed up empty. No errors on screen, no errors in log files, no errors in event log. Also diagnostic messages were not helpful. But … solution was simple.

To get some idea about those forms check out an article called Creating Custom Form Templates from MSDN Library. If you are already familiar with those forms then you should know that there are templates like this:

<SharePoint:RenderingTemplate ID="AssignmentEditForm" runat="server"> 
    <Template> 
        <!—Template Body -->
    </Template> 
</SharePoint:RenderingTemplate>

On MSDN article referred above you can see how those forms are bound to content type definitions. Now there is a little trick we discovered. You must have all those forms defined in user controls otherwise custom forms doesn’t show up. You can see just a blank form with no controls.

It seems to affect only the content types that came with same feature. Controls from some other feature will still work. To help other guys out with these time wasting horror I end this blog entry with something that robots like to eat.

SharePoint content type custom form empty blank problem

Posted: Jan 30 2009, 08:46 PM by DigiMortal | with 3 comment(s)
Filed under:

Comments

SharePoint: why are my custom content type forms empty? - Gunnar … said:

Pingback from  SharePoint: why are my custom content type forms empty? - Gunnar &#8230;

# January 30, 2009 8:08 PM

Bouha said:

Hi,

Could you please explain a little bit how you do that.

I'm facing the same problem and i don't understand what you mean by : "You must have all those forms defined in user controls"

thks

# November 10, 2009 11:15 AM

DionAdoto said:

Hello.

more links for that topic?

And Bye.

# November 28, 2009 12:25 PM