Click here to Skip to main content
15,790,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I have 100's of HTML template(Basically HTML file from 3rd party with header, footer and body with many branding elements and a div called "container") and this is stored in a physical location in a Some server.

My requirement is to render this template by finding the div "container" inside the template and inject my form content into this div.

Sample template.

//logo and some content
<div id ="MainContent">
<div id ="MyContent">
<div id ="Footer">

And below is my form

 <form name="form1" method="post" action="1.aspx" id="form1"  autocomplete="off">
<input type="sumbit" value="submit">

This form should go inside the div MyContent and render.

I don't have control on template and it will not be part of my solution and it is dynamic it can change any time, but always have div called MyContent


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900