Site structure
Version 7.x > Site structure > What Kentico-added html parts are really necessary? View modes: 
User avatar
Member
Member
ptune-edfinancial - 11/12/2012 11:59:27 AM
   
What Kentico-added html parts are really necessary?
Is there an easy way (some kind of setting somewhere) that I can remove the <form> wrapped around all of my BODY html?
1) We really don't have need for it
2) It makes it more difficult to troubleshoot pages
3) It requires an inconvenient JS work-around to add custom form functionality
4) It causes not a little bit of performance issues
5) I'm a control freak, and I don't like anything being added to my pages without me turning it on or adding it myself.

How might I fix this, if at all? I have admin access to everything within Kentico, but don't have easy access to anything that requires ASPX manipulation.

User avatar
Kentico Support
Kentico Support
kentico_janh - 11/13/2012 3:30:49 AM
   
RE:What Kentico-added html parts are really necessary?
Hello,

The Kentico Portal engine uses ASP.Net Web forms as its development model and this model requires to use just one form on the page. For more information, you can read the article below:

http://www.codeproject.com/Articles/6451/Go-Beyond-the-limitations-of-ASP-NET-Form

If you don't want to have this form in the HTML source code, you would need to follow different development model like MVC. For more information about the MVC model in Kentico please follow the link below:

http://devnet.kentico.com/docs/devguide/index.html?mvc_overview.htm

Best regards,
Jan Hermann

User avatar
Member
Member
ptune-edfinancial - 11/13/2012 8:52:30 AM
   
RE:What Kentico-added html parts are really necessary?
Thanks Janh, I'll add those to my reading lists. I wasn't aware this was an ASP.Net model "thing". This is definitely worth researching and those links are helpful. The more control our team require of the CMS the larger the subject matter becomes. Performance and code clarity are big issues for us, so it looks like I'll need to get my hands dirty. Thanks again!

User avatar
Member
Member
ptune-edfinancial - 11/13/2012 9:02:49 AM
   
RE:What Kentico-added html parts are really necessary?
Actually, how might I go about changing to MVC on 6.0? Or otherwise making these changes on 6.0?

User avatar
Kentico Support
Kentico Support
kentico_janh - 11/14/2012 6:03:30 AM
   
RE:What Kentico-added html parts are really necessary?
Hello,

The MVC was available in version 6 as well and below is a link to appropriate section of our documentation also with code examples:

MVC development overview

If you have our sample Corporate Site installed in your CMS, you can check the /Examples/Development Models/MVC section, where one page is implemented in the MVC model and you can play with it.

Best regards,
Jan Hermann

User avatar
Guest
ptune-edfinancial - 11/14/2012 9:13:08 AM
   
RE:What Kentico-added html parts are really necessary?
Thank you much!

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/2/2012 11:19:39 AM
   
RE:What Kentico-added html parts are really necessary?
You can easily style and add custom form functionality in any asp.net page by adding code behind or a small amount of JS. As already mentioned the <form> tag is required by asp.net because the whole page is considered a "form" and posts back.

How does it make it difficult to troubleshoot pages? I'm guessing you're not a development shop and/or don't have an asp.net developer on staff.

You also mentioned there performance issues, what kind? Static html will always load the fastest, you have to consider this is a database driven, server/client side application and from my experience it runs very fast in comparison to other server/client database driven applications.

If there are "things" or other HTML that you want to remove, you'd have to rewrite the asp.net engine and the .net framework, which would be nearly impossible for a single or even a team of 10 people to do. Those items are in the page for a specific reason, unfortunately you may not know the reason or have a need for the reason but when it comes down to it, it's needed.

Best of luck!