Accessing HTML output of controls for templating

mimovil

New Member
In classic ASP i had a really useful system of keeping HTML formatting seperate from the code by reading-in a HTML template file using the FileSystemObject into a string variable, then programmatically replacing text tags in the string with the generated output.<BR><BR>In this way I can have a template for a whole page e.g.<BR><html><BR><head>Some stuff common to all pages</head><BR><body>#Tag:PutPageContentHere#</body><BR></html><BR><BR>... and the HTML pages are still modifyable by someone with only basic HTML knowledge.<BR><BR>I realise this is still possible on a basic level, but I also still want to be able to use the power of controls like the DataGrid. Is it possible to render the output of a DataGrid to a string which I can then programmatically insert into my HTML templates?
 
Back
Top