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
  1. Home
  2. Web Development
  3. ASP.NET
  4. I want to Hide url.

I want to Hide url.

Scheduled Pinned Locked Moved ASP.NET
comquestion
8 Posts 7 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.
  • B Offline
    B Offline
    buffering83
    wrote on last edited by
    #1

    If i click A button, user go to homepage.com/B.aspx But i want to homepage.com insetead of homepage.com/B.aspx. Is there any way?

    hi My english is a little. anyway, nice to meet you~~ and give me your advice anytime~

    G T K A P 5 Replies Last reply
    0
    • B buffering83

      If i click A button, user go to homepage.com/B.aspx But i want to homepage.com insetead of homepage.com/B.aspx. Is there any way?

      hi My english is a little. anyway, nice to meet you~~ and give me your advice anytime~

      G Offline
      G Offline
      Groulien
      wrote on last edited by
      #2

      Learn HTML. /troll You could at least post the code with the link in it or the relevant page request.

      K 1 Reply Last reply
      0
      • B buffering83

        If i click A button, user go to homepage.com/B.aspx But i want to homepage.com insetead of homepage.com/B.aspx. Is there any way?

        hi My english is a little. anyway, nice to meet you~~ and give me your advice anytime~

        T Offline
        T Offline
        Tarun Mangukiya
        wrote on last edited by
        #3

        You can use iframe, master page, etc. if you don't want to use coding. Otherwise you can use url routing code in ASP.NET. You can find it's coding on msdn

        Tarun Mangukiya

        1 Reply Last reply
        0
        • B buffering83

          If i click A button, user go to homepage.com/B.aspx But i want to homepage.com insetead of homepage.com/B.aspx. Is there any way?

          hi My english is a little. anyway, nice to meet you~~ and give me your advice anytime~

          K Offline
          K Offline
          Keith Barrow
          wrote on last edited by
          #4

          If B.aspx is always the page you want to display for http://homepage.com then google for "Set Default Pages in IIS", you can also set this in your web.config. You could also rename "b.aspx" to one of the existing defaults such as "default.aspx" See http://stackoverflow.com/questions/1913058/set-default-page-in-asp-net[^] If you are worried about neater URLs generally you could consider ASP.NET MVC3, but there is a learning curve. Another answer would be to write an HttpHandler to map a clean URL to the actual page, but this will get unweildy and might be a little technically complicated, so MVC3 might be a better option.

          Sort of a cross between Lawrence of Arabia and Dilbert.[^]
          -Or-
          A Dead ringer for Kate Winslett[^]

          T 1 Reply Last reply
          0
          • G Groulien

            Learn HTML. /troll You could at least post the code with the link in it or the relevant page request.

            K Offline
            K Offline
            Keith Barrow
            wrote on last edited by
            #5

            This is a perfectly reasonable newbie question. Posting the code won't help either: it just isn't relevant here.

            Sort of a cross between Lawrence of Arabia and Dilbert.[^]
            -Or-
            A Dead ringer for Kate Winslett[^]

            1 Reply Last reply
            0
            • K Keith Barrow

              If B.aspx is always the page you want to display for http://homepage.com then google for "Set Default Pages in IIS", you can also set this in your web.config. You could also rename "b.aspx" to one of the existing defaults such as "default.aspx" See http://stackoverflow.com/questions/1913058/set-default-page-in-asp-net[^] If you are worried about neater URLs generally you could consider ASP.NET MVC3, but there is a learning curve. Another answer would be to write an HttpHandler to map a clean URL to the actual page, but this will get unweildy and might be a little technically complicated, so MVC3 might be a better option.

              Sort of a cross between Lawrence of Arabia and Dilbert.[^]
              -Or-
              A Dead ringer for Kate Winslett[^]

              T Offline
              T Offline
              Tridip Bhattacharjee
              wrote on last edited by
              #6

              do the url re-write to hide anything.

              tbhattacharjee

              1 Reply Last reply
              0
              • B buffering83

                If i click A button, user go to homepage.com/B.aspx But i want to homepage.com insetead of homepage.com/B.aspx. Is there any way?

                hi My english is a little. anyway, nice to meet you~~ and give me your advice anytime~

                A Offline
                A Offline
                AspDotNetDev
                wrote on last edited by
                #7

                If you can, I recommend using a MultiView instead of multiple pages. Depends on what exactly you are trying to accomplish though (e.g., you didn't say whether or not the button will also reside on homepage.com).

                [Managing Your JavaScript Library in ASP.NET]

                1 Reply Last reply
                0
                • B buffering83

                  If i click A button, user go to homepage.com/B.aspx But i want to homepage.com insetead of homepage.com/B.aspx. Is there any way?

                  hi My english is a little. anyway, nice to meet you~~ and give me your advice anytime~

                  P Offline
                  P Offline
                  Prasanta_Prince
                  wrote on last edited by
                  #8

                  You can use Url rewriting ... http://msdn.microsoft.com/en-us/library/ms972974.aspx[^] URL Rewriting with ASP.NET[^]

                  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