Data and Code separation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • prschmid

    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.
  • joker

    #2
    Re: Data and Code separation

    This newsgroup is for classic ASP. None of the .net is talked about here.

    prschmid wrote:
    [color=blue]
    > 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.[/color]

    Comment

    • dlbjr

      #3
      Re: Data and Code separation

      XML and XSL

      This is one of there missions.


      dlbjr
      Pleading sagacious indoctrination!


      Comment

      • Bob Lehmann

        #4
        Re: Data and Code separation

        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-spam@netzero.co m> wrote in message
        news:%23zvqxKec EHA.3988@tk2msf tngp13.phx.gbl. ..[color=blue]
        > This newsgroup is for classic ASP. None of the .net is talked about here.
        >
        > prschmid wrote:
        >[color=green]
        > > I was wondering how one can separate an HTML file from the actual code.[/color][/color]
        For example, if I want to create a printer-friendly version of a page, I
        don't want to have duplicate data.[color=blue][color=green]
        > >
        > > So, what is the best way to have an ASP .NET page which just just[/color][/color]
        contains layout and other structural code and have it be fed an HTML file
        for it to display as the main data.[color=blue][color=green]
        > >
        > > Thank you in advance.[/color]
        >[/color]


        Comment

        • Bob Lehmann

          #5
          Re: Data and Code separation

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

          Bob Lehmann

          "prschmid" <prschmid@discu ssions.microsof t.com> wrote in message
          news:FF978F22-B28D-4977-A53F-7B785B58E7B2@mi crosoft.com...[color=blue]
          > I was wondering how one can separate an HTML file from the actual code.[/color]
          For example, if I want to create a printer-friendly version of a page, I
          don't want to have duplicate data.[color=blue]
          >
          > So, what is the best way to have an ASP .NET page which just just contains[/color]
          layout and other structural code and have it be fed an HTML file for it to
          display as the main data.[color=blue]
          >
          > Thank you in advance.[/color]


          Comment

          • Jeff Cochran

            #6
            Re: Data and Code separation

            On Sat, 24 Jul 2004 17:04:02 -0700, "prschmid"
            <prschmid@discu ssions.microsof t.com> wrote:
            [color=blue]
            >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.[/color]

            Use CSS for the printing style.

            Jeff

            Comment

            Working...