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. default page redirect when go back home page.

default page redirect when go back home page.

Scheduled Pinned Locked Moved ASP.NET
tutorialcom
5 Posts 3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    when I go back home , the default.aspx has also written within domain name. for example:- http://www.domaindname.com/default.aspx how to remove default.aspx to the domain name.

    Z 1 Reply Last reply
    0
    • L Lost User

      when I go back home , the default.aspx has also written within domain name. for example:- http://www.domaindname.com/default.aspx how to remove default.aspx to the domain name.

      Z Offline
      Z Offline
      ZurdoDev
      wrote on last edited by
      #2

      Why do you want to? People can still type in http://www.domainname.com/ and it works, right? Who cares if default.aspx gets added on? You do have to load a page.

      There are only 10 types of people in the world, those who understand binary and those who don't.

      L M 2 Replies Last reply
      0
      • Z ZurdoDev

        Why do you want to? People can still type in http://www.domainname.com/ and it works, right? Who cares if default.aspx gets added on? You do have to load a page.

        There are only 10 types of people in the world, those who understand binary and those who don't.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        I mean to say for example when I open asp.net c# website in local host the Default.apx page is also written within local host how to remove Default.aspx from the local host http://localhost:50050/Default.aspx in above line Default.aspx remove the main page.

        1 Reply Last reply
        0
        • Z ZurdoDev

          Why do you want to? People can still type in http://www.domainname.com/ and it works, right? Who cares if default.aspx gets added on? You do have to load a page.

          There are only 10 types of people in the world, those who understand binary and those who don't.

          M Offline
          M Offline
          Marjan Venema
          wrote on last edited by
          #4

          I care. It is plain ugly. In this case there is no use in having two URI's pointing to the same resource. When people can, they will keep links around to the URI including the aspx bit. Which means that all those links go broken should I change the default to index or whatever. Having the default.aspx bit reveals details about the implementation that are totally irrelevant to visitors. And those details do not serve any purpose other than increasing the burden of changing the technology stack implementing a site and that means increasing the lock-in with that technology (in other words: increasing the inertia with regard to changing it). Pretty url's do not exist for the sole reason of being pretty...

          --- http://softwareonastring.com

          Z 1 Reply Last reply
          0
          • M Marjan Venema

            I care. It is plain ugly. In this case there is no use in having two URI's pointing to the same resource. When people can, they will keep links around to the URI including the aspx bit. Which means that all those links go broken should I change the default to index or whatever. Having the default.aspx bit reveals details about the implementation that are totally irrelevant to visitors. And those details do not serve any purpose other than increasing the burden of changing the technology stack implementing a site and that means increasing the lock-in with that technology (in other words: increasing the inertia with regard to changing it). Pretty url's do not exist for the sole reason of being pretty...

            --- http://softwareonastring.com

            Z Offline
            Z Offline
            ZurdoDev
            wrote on last edited by
            #5

            URL rewriting may be what you want then.

            There are only 10 types of people in the world, those who understand binary and those who don't.

            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