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:
XML
Hi,

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.

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

And below is my form

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

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

Thanks,
Posted

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