Login

Username

Password





Register   Reset password

Get Cuyahoga at SourceForge.net. Fast, secure and Free Open Source software downloads

Forum

Welcome Guest Search | Active Topics | Members

Error while Template is changing Options
Nomad88
Posted: Friday, March 4, 2011 11:47:14 PM
Rank: Newbie
Groups: Member

Joined: 3/4/2011
Posts: 1
Points: 3
Error: Object reference not set to an instance of an object.

The template doesn't apply if there are already some modules or contents placed in some placeholders that don't exist in new template.

Line 357: if (moduleControl != null)
Line 358: {
Line 359: ((PlaceHolder)this._templateControl.Containers[section.PlaceholderId]).Controls.Add(moduleControl);
Line 360: }
Line 361: }


Or more correctly it applies, but shows error. And after that you can't return back the changes.
markfind
Posted: Saturday, March 5, 2011 2:33:47 AM
Rank: Advanced Member
Groups: Member

Joined: 10/16/2005
Posts: 63
Points: 156
Location: Italy
may be templates don't have the same placeholder..
Constructor
Posted: Saturday, March 5, 2011 6:01:52 AM
Rank: Administration
Groups: Administration , Member

Joined: 10/7/2008
Posts: 505
Points: 1,515
markfind wrote:
may be templates don't have the same placeholder..


This is correct. If you change templates on an existing site make sure placeholders exist for sections that are in use.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Yet Another Forum.net version 1.9.0 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.