In my application i have some umbraco pages and static aspx pages. I need to write C# code in umbraco templates like aspx page code behind(example: page load). Can anyone help me to solve this problem?
I am working on a website .The website is basically in asp.net developed in Visual Studio 2012. The website has many static pages and ecommerce pages developed in aspx. Currently we have a new requirement to separate out the ecommerce section from the static section and move the static content into Umbraco CMS retaining the current structure. So we need to call some methods from our C# class to this changed umbraco pages.
What kind of logic are you having in the code behinds currently?
Perhaps you can add macroes based on either usercontrols or mvc, which will make the pages able to work in the same manner but without the codebehind in the .aspx files.
Code behind in umbraco Templates
Hi All,
In my application i have some umbraco pages and static aspx pages. I need to write C# code in umbraco templates like aspx page code behind(example: page load). Can anyone help me to solve this problem?
thanks
Alen
Hi Alen
May I ask why you need to write codebehind in your Umbraco templates? What is your scenario?
It's not recommended to do so in the Umbraco templates I think. So asking to see if you could perhaps achieve what you need in another way.
Cheers, Jan
Hi Jan,
Thanks for your speedy reply.
My scenario is,
I am working on a website .The website is basically in asp.net developed in Visual Studio 2012. The website has many static pages and ecommerce pages developed in aspx. Currently we have a new requirement to separate out the ecommerce section from the static section and move the static content into Umbraco CMS retaining the current structure. So we need to call some methods from our C# class to this changed umbraco pages.
thanks,
Alen
Hi Alen
What kind of logic are you having in the code behinds currently?
Perhaps you can add macroes based on either usercontrols or mvc, which will make the pages able to work in the same manner but without the codebehind in the .aspx files.
/Jan
is working on a reply...