Frontpage control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Erik J Sawyer

    Frontpage control

    Problem:
    I take a working HTML page, containing a Frontpage Hit
    Counter control, and rename it from .htm to .aspx. No
    other changes are made to the file.

    The hit counter now either doesn't display, or never
    increments (stuck at "1").

    Any thoughts?

    Erik J Sawyer
    Webmaster
    Kingsport City Schools
  • Frank Drebin

    #2
    Re: Frontpage control

    aspx is an entirely different mechanism.. I don't believe you could run FP
    controls on an aspx page - besides, ASP.NET needs to be compiled if you have
    any script behind it.. this is sort of all or nothing - you run FP scripts
    in an html file - or you do everything in ASP.NET

    "Erik J Sawyer" <EJSawyer@N-o-S-p-a-m.bigfoot.com> wrote in message
    news:034001c366 93$5528f8c0$a50 1280a@phx.gbl.. .[color=blue]
    > Problem:
    > I take a working HTML page, containing a Frontpage Hit
    > Counter control, and rename it from .htm to .aspx. No
    > other changes are made to the file.
    >
    > The hit counter now either doesn't display, or never
    > increments (stuck at "1").
    >
    > Any thoughts?
    >
    > Erik J Sawyer
    > Webmaster
    > Kingsport City Schools[/color]


    Comment

    • MS News \(MS ILM\)

      #3
      Re: Frontpage control

      may be if you add the runat="server" property to the control might do it


      "Erik J Sawyer" <EJSawyer@N-o-S-p-a-m.bigfoot.com> wrote in message
      news:034001c366 93$5528f8c0$a50 1280a@phx.gbl.. .[color=blue]
      > Problem:
      > I take a working HTML page, containing a Frontpage Hit
      > Counter control, and rename it from .htm to .aspx. No
      > other changes are made to the file.
      >
      > The hit counter now either doesn't display, or never
      > increments (stuck at "1").
      >
      > Any thoughts?
      >
      > Erik J Sawyer
      > Webmaster
      > Kingsport City Schools[/color]


      Comment

      • Kevin Spencer

        #4
        Re: Frontpage control

        Sorry. The counter needs to be ruyn through the FrontPage server extensions.
        ASP.Net pages are processed by a different ISAPI.

        --
        HTH,

        Kevin Spencer
        Microsoft MVP
        ..Net Developer

        Neither a follower nor a lender be.

        "Erik J Sawyer" <EJSawyer@N-o-S-p-a-m.bigfoot.com> wrote in message
        news:034001c366 93$5528f8c0$a50 1280a@phx.gbl.. .[color=blue]
        > Problem:
        > I take a working HTML page, containing a Frontpage Hit
        > Counter control, and rename it from .htm to .aspx. No
        > other changes are made to the file.
        >
        > The hit counter now either doesn't display, or never
        > increments (stuck at "1").
        >
        > Any thoughts?
        >
        > Erik J Sawyer
        > Webmaster
        > Kingsport City Schools[/color]


        Comment

        • Erik J Sawyer

          #5
          Re: Frontpage control

          I understand that code-behinds need to be compiled, but
          you can put code snippets in the HTML (similar to classic
          ASP) and it can compile JIT.

          - Erik[color=blue]
          >-----Original Message-----
          >aspx is an entirely different mechanism.. I don't[/color]
          believe you could run FP[color=blue]
          >controls on an aspx page - besides, ASP.NET needs to be[/color]
          compiled if you have[color=blue]
          >any script behind it.. this is sort of all or nothing -[/color]
          you run FP scripts[color=blue]
          >in an html file - or you do everything in ASP.NET
          >
          >"Erik J Sawyer" <EJSawyer@N-o-S-p-a-m.bigfoot.com> wrote[/color]
          in message[color=blue]
          >news:034001c36 693$5528f8c0$a5 01280a@phx.gbl. ..[color=green]
          >> Problem:
          >> I take a working HTML page, containing a Frontpage Hit
          >> Counter control, and rename it from .htm to .aspx. No
          >> other changes are made to the file.
          >>
          >> The hit counter now either doesn't display, or never
          >> increments (stuck at "1").
          >>
          >> Any thoughts?
          >>
          >> Erik J Sawyer
          >> Webmaster
          >> Kingsport City Schools[/color][/color]

          Comment

          • Erik J Sawyer

            #6
            Re: Frontpage control

            No, the counter runs through a CGI-style program
            (specifically, _vti_bin/fpcount.exe). That link remains
            intact, and should still work.

            FYI, the page works fine if the extension is ASP. If it
            was a matter of ISAPI engines, this would break it as
            well.

            - Erik[color=blue]
            >-----Original Message-----
            >Sorry. The counter needs to be ruyn through the[/color]
            FrontPage server extensions.[color=blue]
            >ASP.Net pages are processed by a different ISAPI.
            >
            >--
            >HTH,
            >
            >Kevin Spencer
            >Microsoft MVP
            >..Net Developer
            >http://www.takempis.com
            >Neither a follower nor a lender be.
            >
            >"Erik J Sawyer" <EJSawyer@N-o-S-p-a-m.bigfoot.com> wrote[/color]
            in message[color=blue]
            >news:034001c36 693$5528f8c0$a5 01280a@phx.gbl. ..[color=green]
            >> Problem:
            >> I take a working HTML page, containing a Frontpage Hit
            >> Counter control, and rename it from .htm to .aspx. No
            >> other changes are made to the file.
            >>
            >> The hit counter now either doesn't display, or never
            >> increments (stuck at "1").
            >>
            >> Any thoughts?
            >>
            >> Erik J Sawyer
            >> Webmaster
            >> Kingsport City Schools[/color][/color]

            Comment

            • Erik J Sawyer

              #7
              Re: Frontpage control

              No, the runat="server" attribute tells the ASP.Net ISAPI
              engine to process the control before it's sent to the
              client. In this case, the counter is a CGI-style
              program. The link must be processed by the client into a
              sub-request (much as a graphic would be), and the counter
              program returns the graphical counter display back.

              - Erik[color=blue]
              >-----Original Message-----
              >may be if you add the runat="server" property to the[/color]
              control might do it[color=blue]
              >
              >
              >"Erik J Sawyer" <EJSawyer@N-o-S-p-a-m.bigfoot.com> wrote[/color]
              in message[color=blue]
              >news:034001c36 693$5528f8c0$a5 01280a@phx.gbl. ..[color=green]
              >> Problem:
              >> I take a working HTML page, containing a Frontpage Hit
              >> Counter control, and rename it from .htm to .aspx. No
              >> other changes are made to the file.
              >>
              >> The hit counter now either doesn't display, or never
              >> increments (stuck at "1").
              >>
              >> Any thoughts?
              >>
              >> Erik J Sawyer
              >> Webmaster
              >> Kingsport City Schools[/color][/color]

              Comment

              • Frank Drebin

                #8
                Re: Frontpage control

                It just really seems you are barking up the wrong tree here. What's the
                signifigance of changing the filename to .aspx? In the time it would take to
                troubleshoot some wacky Frontpage macro problem - you could write an ASP.NET
                counter.

                Why are you trying to convert half of the app to aspx?

                "Erik J Sawyer" <EJSawyer@N-o-S-p-a-m.bigfoot.com> wrote in message
                news:0d0901c367 1f$ee1cfc70$a60 1280a@phx.gbl.. .[color=blue]
                > No, the counter runs through a CGI-style program
                > (specifically, _vti_bin/fpcount.exe). That link remains
                > intact, and should still work.
                >
                > FYI, the page works fine if the extension is ASP. If it
                > was a matter of ISAPI engines, this would break it as
                > well.
                >
                > - Erik[color=green]
                > >-----Original Message-----
                > >Sorry. The counter needs to be ruyn through the[/color]
                > FrontPage server extensions.[color=green]
                > >ASP.Net pages are processed by a different ISAPI.
                > >
                > >--
                > >HTH,
                > >
                > >Kevin Spencer
                > >Microsoft MVP
                > >..Net Developer
                > >http://www.takempis.com
                > >Neither a follower nor a lender be.
                > >
                > >"Erik J Sawyer" <EJSawyer@N-o-S-p-a-m.bigfoot.com> wrote[/color]
                > in message[color=green]
                > >news:034001c36 693$5528f8c0$a5 01280a@phx.gbl. ..[color=darkred]
                > >> Problem:
                > >> I take a working HTML page, containing a Frontpage Hit
                > >> Counter control, and rename it from .htm to .aspx. No
                > >> other changes are made to the file.
                > >>
                > >> The hit counter now either doesn't display, or never
                > >> increments (stuck at "1").
                > >>
                > >> Any thoughts?
                > >>
                > >> Erik J Sawyer
                > >> Webmaster
                > >> Kingsport City Schools[/color][/color]
                >[/color]


                Comment

                • Erik J Sawyer

                  #9
                  Re: Frontpage control

                  It's not a matter of converting "half the app". This is
                  a website that I have inherited from a predecessor, which
                  is 99% static content. I am "dipping my toe" into adding
                  some ASP.Net content to a page, but don't want to
                  overhaul the page just yet. Eventually, the page will
                  certainly be rewritten, and the counter will become
                  a .Net control, but I wasn't aiming at "fixing" something
                  that's "not broke"--at least not yet.

                  - Erik[color=blue]
                  >-----Original Message-----
                  >It just really seems you are barking up the wrong tree[/color]
                  here. What's the[color=blue]
                  >signifigance of changing the filename to .aspx? In the[/color]
                  time it would take to[color=blue]
                  >troubleshoot some wacky Frontpage macro problem - you[/color]
                  could write an ASP.NET[color=blue]
                  >counter.
                  >
                  >Why are you trying to convert half of the app to aspx?
                  >
                  >"Erik J Sawyer" <EJSawyer@N-o-S-p-a-m.bigfoot.com> wrote[/color]
                  in message[color=blue]
                  >news:0d0901c36 71f$ee1cfc70$a6 01280a@phx.gbl. ..[color=green]
                  >> No, the counter runs through a CGI-style program
                  >> (specifically, _vti_bin/fpcount.exe). That link[/color][/color]
                  remains[color=blue][color=green]
                  >> intact, and should still work.
                  >>
                  >> FYI, the page works fine if the extension is ASP. If[/color][/color]
                  it[color=blue][color=green]
                  >> was a matter of ISAPI engines, this would break it as
                  >> well.
                  >>
                  >> - Erik[color=darkred]
                  >> >-----Original Message-----
                  >> >Sorry. The counter needs to be ruyn through the[/color]
                  >> FrontPage server extensions.[color=darkred]
                  >> >ASP.Net pages are processed by a different ISAPI.
                  >> >
                  >> >--
                  >> >HTH,
                  >> >
                  >> >Kevin Spencer
                  >> >Microsoft MVP
                  >> >..Net Developer
                  >> >http://www.takempis.com
                  >> >Neither a follower nor a lender be.
                  >> >
                  >> >"Erik J Sawyer" <EJSawyer@N-o-S-p-a-m.bigfoot.com>[/color][/color][/color]
                  wrote[color=blue][color=green]
                  >> in message[color=darkred]
                  >> >news:034001c36 693$5528f8c0$a5 01280a@phx.gbl. ..
                  >> >> Problem:
                  >> >> I take a working HTML page, containing a Frontpage[/color][/color][/color]
                  Hit[color=blue][color=green][color=darkred]
                  >> >> Counter control, and rename it from .htm to .aspx.[/color][/color][/color]
                  No[color=blue][color=green][color=darkred]
                  >> >> other changes are made to the file.
                  >> >>
                  >> >> The hit counter now either doesn't display, or never
                  >> >> increments (stuck at "1").
                  >> >>
                  >> >> Any thoughts?
                  >> >>
                  >> >> Erik J Sawyer
                  >> >> Webmaster
                  >> >> Kingsport City Schools[/color][/color][/color]

                  Comment

                  Working...