Randar Puust
-
5/4/2009 4:54:44 PM
Integrating with C# through Portal Engine
I'm still a newbie to Kentico, so apologies if these are obvious questions.
Is there any way to have a C# code behind when using the portal engine? -Master Page. Ideally, we would have a single master page and our current one has 389 lines that I wouldn’t want to put inline if possible. I’m hoping we don’t need two master pages, one for portal pages and one for aspx pages. -Page Layouts. I do think we will want to put some logic on the pages. For example, every page in our system inherits from a “BasePage” class, that handles all of the security, session management, etc. I would want the same thing for any layouts.
If the answer to the code behind is no, can you at least call custom code from the layout? I’m hoping all you have to do is add the assembly to the bin folder can call it using the standard event model. I can think of a few examples: -If we wanted to calculate something (average par, total yardage, etc.) where would we store that calculation? I assume it would be in a business component that we call on the pages Page_Load event. -We use the Peter Blum Data Entry Suite (http://www.peterblum.com/DES/Home.aspx) for all of our data entry. I would want to be able to use his textboxes in the aspx pages if possible.
|