Data and Code separation

P

prschmid

I was wondering how one can separate an HTML file from the actual code. For example, if I want to create a printer-friendly version of a page, I don't want to have duplicate data.

So, what is the best way to have an ASP .NET page which just just contains layout and other structural code and have it be fed an HTML file for it to display as the main data.

Thank you in advance.
 
B

Bob Lehmann

Oh, it's talked about, but noone will actually admit to doing it. We're
mostly just a bunch of closet DotNetters.

Bob Lehmann

joker said:
This newsgroup is for classic ASP. None of the .net is talked about here.
For example, if I want to create a printer-friendly version of a page, I
don't want to have duplicate data.contains layout and other structural code and have it be fed an HTML file
for it to display as the main data.
 
B

Bob Lehmann

Even in the correct group, your question would make hardly any sense.

Bob Lehmann

prschmid said:
I was wondering how one can separate an HTML file from the actual code.
For example, if I want to create a printer-friendly version of a page, I
don't want to have duplicate data.
So, what is the best way to have an ASP .NET page which just just contains
layout and other structural code and have it be fed an HTML file for it to
display as the main data.
 
J

Jeff Cochran

I was wondering how one can separate an HTML file from the actual code. For example, if I want to create a printer-friendly version of a page, I don't want to have duplicate data.

So, what is the best way to have an ASP .NET page which just just contains layout and other structural code and have it be fed an HTML file for it to display as the main data.

Use CSS for the printing style.

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top