ASPX templates
Version 5.x > ASPX templates > Adding a BizForm to a template View modes: 
User avatar
Member
Member
ko-28 - 6/6/2011 11:29:12 AM
   
Adding a BizForm to a template
I need to have a BizForm be available for filling out on every page that has a certain template. I see that someone in my company has done this before, and I see the following code in the template html:

<uc1:bizform ID="bizform1" runat="server" Enabled="True"
BizFormName="AorB" />

However I do not know how to generate this code for using on the other template. The BizForm I want to use is already created. I have looked through the documentation and just can't seem to find what I am looking for.

Thank you very much for helping.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 6/6/2011 10:39:54 PM
   
RE:Adding a BizForm to a template
Hi,

You need to modify code of template which is used on appropriate document and insert the code into this template or you can modify inheritance configuration and inherit from the page where the biz form is already inserted.

More information about visual inheritance you can find here:
Visual inheritance

Now if you need to insert the code into another ASPX template. Please take a look at Properties of document, Template tab to find out which template is used by the document. Now in the Site Manager - Development - Page templates - <template with name you found in Properties of document> you can see physical path to ASPX template. Now you can open Visual Studio, insert biz form code and save changes. The Biz form should be displayed on a document.

Best regards,
Ivana Tomanickova