submit a .net page to asp page

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

    submit a .net page to asp page

    I new with .net and asp.
    I can't find a way to link a asp page from a asp.net page.
    I have tried a button and even a simple hyper link is not working.
    When I click the hyper link in asp.net(in the navigateUrl I have an asp page), it let me down load the asp file.

    Can anybody help me?

    Jim
  • Cor

    #2
    Re: submit a .net page to asp page

    Hi Jim,

    In ASP net you can use the same as in classic asp use the redirect sentence
    and more

    Have a look at this



    There is something written as "from the browser", in my opinion that is also
    the server side and not the client side, a little bit strange.

    I hope this helps?

    Cor


    Comment

    • jim

      #3
      Re: submit a .net page to asp page

      I followed the link. Response.Redire ct works very well.
      When I use Server.Transfer I got "Invalid path for child request 'C:\Inetpub\www root\sdb1.asp'. A virtual path is expected."
      Can you tell me what is that?
      I got Response.Redire ct works any way.

      Thanks a lot.
      jim

      Comment

      • Jim M

        #4
        Re: submit a .net page to asp page

        You can not specify a hard coded path. Use server.transfer ("sdb1.asp")

        "jim" <anonymous@disc ussions.microso ft.com> wrote in message
        news:ADFAEA03-ACD5-492B-A89A-335C06CA2ABE@mi crosoft.com...[color=blue]
        > I followed the link. Response.Redire ct works very well.
        > When I use Server.Transfer I got "Invalid path for child request[/color]
        'C:\Inetpub\www root\sdb1.asp'. A virtual path is expected."[color=blue]
        > Can you tell me what is that?
        > I got Response.Redire ct works any way.
        >
        > Thanks a lot.
        > jim
        >[/color]


        Comment

        • Peter Rilling

          #5
          Re: submit a .net page to asp page

          I do not believe you can "transfer" control an ASP page anymore then you
          could an HTML page.

          Redirect is the way to go when crossing boundaries because Redirect sends a
          command to the browser to use a different page while Transfer will transfer
          control within the current request without talking to the browser.

          Also, Transfer cannot be used across virtual directory boundaries. If you
          have the page A.aspx in virtual root A and B.aspx in virtual root B, A.aspx
          cannot "transfer" control to B.aspx, you would have to use Redirect.

          "Jim M" <anonymouse@dis cussions.micros oft.com> wrote in message
          news:Od2U4cq9DH A.3292@TK2MSFTN GP11.phx.gbl...[color=blue]
          > You can not specify a hard coded path. Use server.transfer ("sdb1.asp")
          >
          > "jim" <anonymous@disc ussions.microso ft.com> wrote in message
          > news:ADFAEA03-ACD5-492B-A89A-335C06CA2ABE@mi crosoft.com...[color=green]
          > > I followed the link. Response.Redire ct works very well.
          > > When I use Server.Transfer I got "Invalid path for child request[/color]
          > 'C:\Inetpub\www root\sdb1.asp'. A virtual path is expected."[color=green]
          > > Can you tell me what is that?
          > > I got Response.Redire ct works any way.
          > >
          > > Thanks a lot.
          > > jim
          > >[/color]
          >
          >[/color]


          Comment

          Working...