#
Nomad88
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.
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.