Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Link to other aspx file

Link to other aspx file

Scheduled Pinned Locked Moved ASP.NET
questioncsharphtmlasp-netsysadmin
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gunnar66
    wrote on last edited by
    #1

    Hi I would like to have a link on my page to a other .aspx file. Something like this: Open Report But the machine (gunnar this time) is not known. I have to find the machine name. That I can do in code(I use VB in asp.net) behind a button like this: Dim strRequestMethod as String strRequestMethod = Request.ServerVariables( "SERVER_NAME" ) But Then I can not use href in html, beacuse I dont know the machine name. How can I do this? If its not possible to have a link, then how can I do it with a button? Thx The other aspx file lying in a other directory on the same machine(gunnar) http://gunnar/ReportSceduler/Report.aspx -- modified at 9:28 Tuesday 27th September, 2005

    C 1 Reply Last reply
    0
    • G gunnar66

      Hi I would like to have a link on my page to a other .aspx file. Something like this: Open Report But the machine (gunnar this time) is not known. I have to find the machine name. That I can do in code(I use VB in asp.net) behind a button like this: Dim strRequestMethod as String strRequestMethod = Request.ServerVariables( "SERVER_NAME" ) But Then I can not use href in html, beacuse I dont know the machine name. How can I do this? If its not possible to have a link, then how can I do it with a button? Thx The other aspx file lying in a other directory on the same machine(gunnar) http://gunnar/ReportSceduler/Report.aspx -- modified at 9:28 Tuesday 27th September, 2005

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Use a linkbutton control, so you can set the link in code. Christian Graus - Microsoft MVP - C++

      G 1 Reply Last reply
      0
      • C Christian Graus

        Use a linkbutton control, so you can set the link in code. Christian Graus - Microsoft MVP - C++

        G Offline
        G Offline
        gunnar66
        wrote on last edited by
        #3

        Hi That look like a good idea. But under the linkbutton what does the code look like to open the other aspx file. Can i use href here? Thx

        C 1 Reply Last reply
        0
        • G gunnar66

          Hi That look like a good idea. But under the linkbutton what does the code look like to open the other aspx file. Can i use href here? Thx

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Response.Redirect You could also write the anchor tag yourself in the codebehind using a placeholder Christian Graus - Microsoft MVP - C++

          G 1 Reply Last reply
          0
          • C Christian Graus

            Response.Redirect You could also write the anchor tag yourself in the codebehind using a placeholder Christian Graus - Microsoft MVP - C++

            G Offline
            G Offline
            gunnar66
            wrote on last edited by
            #5

            Hi It work just fine with Response.Redirect thx for your support! Gunnar

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups