473,320 Members | 1,951 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Data and Code separation

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.
Jul 19 '05 #1
5 1176
This newsgroup is for classic ASP. None of the .net is talked about here.

prschmid wrote:
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.


Jul 19 '05 #2
XML and XSL

This is one of there missions.
dlbjr
Pleading sagacious indoctrination!
Jul 19 '05 #3
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" <no*****@netzero.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
This newsgroup is for classic ASP. None of the .net is talked about here.

prschmid wrote:
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.

Jul 19 '05 #4
Even in the correct group, your question would make hardly any sense.

Bob Lehmann

"prschmid" <pr******@discussions.microsoft.com> wrote in message
news:FF**********************************@microsof t.com...
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.

Jul 19 '05 #5
On Sat, 24 Jul 2004 17:04:02 -0700, "prschmid"
<pr******@discussions.microsoft.com> wrote:
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
Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Angelos Karantzalis | last post by:
Hi guys, for a while now, we've been flirting with the idea of having a single component in our app that handles all the plumbing for our Db calls ( creating connections, Commands & Parametes...
9
by: Anon Email | last post by:
Hi people, I'm learning about header files in C++. The following is code from Bartosz Milewski: // Code const int maxStack = 16; class IStack
25
by: Alvin Bruney | last post by:
C# is great but it does have some short comings. Here, I examine one of them which I definitely think is a shortcoming. Coming from C++, there seems to be no equivalent in C# to separate code...
1
by: Johann Blake | last post by:
I am looking for a good solution on how to implement data access in an application so that there is a clean separation between the data access layer, the business layer and the GUI layer. I am...
2
by: headware | last post by:
I'm relatively new to ASP.NET and ADO.NET, but I have a basic design question regarding the use of web services and APS.NET applications. Right now we have an application that uses web services to...
37
by: Alan Silver | last post by:
Hello, Newbie here, so please forgive what is probably a basic question ... I see a lot of discussion about "code behind", which if I have understood correctly, means that the script code goes...
29
by: John Rivers | last post by:
Hello, What good reason there is for not allowing methods in ASPX pages I can't imagine, but here is how to get around that limitation: (START) <body MS_POSITIONING="FlowLayout"> <form...
2
by: Joe | last post by:
Hello All: I am writing to ask for your opinions. I have a colleague who combines his code with the markup used to display the code (reckoning back to classic ASP). Here's an example of a...
14
by: ToddLMorgan | last post by:
Summary: How should multiple (related) projects be arranged (structured) and configured so that the following is possible: o Sharing common code (one of the projects would be a "common" project...
10
by: Frank van Wensveen | last post by:
Friend, coders, fellow wage slaves, lend my your ears. I believe that in a perfect world the design of a website (or feature on a website) should be totally separated from its design and the data...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.