ASPX templates
Version 7.x > ASPX templates > Use Html Page Instead of ascx page View modes: 
User avatar
Member
Member
jack.Ryder-ymail - 1/19/2014 11:01:32 PM
   
Use Html Page Instead of ascx page
Hello everyone Can any one tell me how to make html layout instead of ascx layout ..in page template..and also use that page as a master page..any example available in kentico doc???

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 1/21/2014 1:19:35 AM
   
RE:Use Html Page Instead of ascx page
Hi Jack,

Thank you for your message.

May I ask why do you want to create strictly html pages? In ASPX pages you indeed work with HTML. If you would have only html page it could be only static pages, which is exact opposite of what Kentico is supposed to do, so I would not create pure html pages.

For creating your own template please checkout ->http://devnet.kentico.com/docs/devguide/creating_a_new_aspx_page_template.htm

And for creating master page ->http://devnet.kentico.com/docs/devguide/using_the_master_pages.htm

Kind regards,
Richard Sustek

User avatar
Member
Member
jack.Ryder-ymail - 1/21/2014 4:23:35 AM
   
RE:Use Html Page Instead of ascx page
Thx for the rpl richard..i want to use html rather than aspx..because of rendering time....if compare html page rendering and aspx page rendering than ther's huge diff. so that i want to use html controls rather than aspx controls for defining page layout..by the way thx for the rpl.

User avatar
Kentico MVP
Kentico MVP
Brenden Kehren - 1/21/2014 9:15:41 AM
   
RE:Use Html Page Instead of ascx page
Are you talking about changing the extension a page uses or simply using an HTML page vs an ASPX page?

Using straight HTML totally defeats the purpose of using Kentico or any asp.net website. The point of using Kentico is to have the ability to change the page and content whenever you want without the need for a developer. Having static HTML pages requires someone with the knowledge of HTML and/or javascript to write the pages.

When you say HUGE difference, what kind of times are you taking about? Remember Kentico is gathering data and running several queries with each page load that's one of the reasons you'll see a difference.

User avatar
Member
Member
jack.Ryder-ymail - 1/22/2014 4:11:29 AM
   
RE:Use Html Page Instead of ascx page
Thx for the rpl..you are right that in page load multiple queries are executing....actually i want to know when you create new page template in kentico site manager and make one test page laout and go to layout for newly create page layout..then there is option html and ascx...so for that i want to know which is better for creating page template using html or ascx...

User avatar
Kentico MVP
Kentico MVP
Brenden Kehren - 1/22/2014 7:13:57 AM
   
RE:Use Html Page Instead of ascx page
I don't believe you have that choic with templates.

With transformations you do but that depends on what you're rendering. You can use HTML if you'd like although you need to make sure you are coding correctly for it. In a standard ascx transformation you use <% Eval("ColumnName") %> to get data. In HTML I belive it is different {%ColumnName%} I think. The time it takes to render will be the same I bet simply because it's still making a database call and rendering it to the page.

If you're tring to make a decision based on speed over maintenance and future development work, I'd choose maintenance over speed because you won't notice a difference and if you aren't maintaining the site any longer it makes it easier for someone else to pick things up.