Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Dear Umbraco,
I started using Umbraco and I wonder what would be a good way to develop user controls and master pages,
I like to have the whole web application open in Visual Studio and be able to use intellisense and stuff...
is there any reason why not to use code behind in the master pages or user controls ?
CodeFile="MyMaster.master.vb" Inherits="MyMaster"
There's nothing stopping you making usercontrols with code behind, the built in ones have code behind they're just compiled, so you can't see it..
For master pages, I think you should be able to use code behind as well if you want to (although I've not tried it myself).
Hope that helps!
:)
Umbraco can run compile or uncompiled (ewwww) backing files with no problems. I've done sites that have masterpages which inherit from a class and I always have a backing class for my .NET user controls
Thanks for your answers,
Is there Umbraco classes for Page, MasterPage or User Controls that I should inherit from ?
Or just System.Web.UI.Page ?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Code behind in Master Pages and User Controls
Dear Umbraco,
I started using Umbraco and I wonder what would be a good way to develop user controls and master pages,
I like to have the whole web application open in Visual Studio and be able to use intellisense and stuff...
is there any reason why not to use code behind in the master pages or user controls ?
CodeFile="MyMaster.master.vb" Inherits="MyMaster"
There's nothing stopping you making usercontrols with code behind, the built in ones have code behind they're just compiled, so you can't see it..
For master pages, I think you should be able to use code behind as well if you want to (although I've not tried it myself).
Hope that helps!
:)
Umbraco can run compile or uncompiled (ewwww) backing files with no problems. I've done sites that have masterpages which inherit from a class and I always have a backing class for my .NET user controls
Thanks for your answers,
Is there Umbraco classes for Page, MasterPage or User Controls that I should inherit from ?
Or just System.Web.UI.Page ?
is working on a reply...