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. How to set the default page on asp.net

How to set the default page on asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netwindows-admintutorialquestion
3 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.
  • B Offline
    B Offline
    Britney S Morales
    wrote on last edited by
    #1

    I want to set contact_us.aspx like the web site default page, but i cant reach the iis admin, can i do by another way?, maybe the web.config..

    keep Learning and you never will be out of date...

    K C 2 Replies Last reply
    0
    • B Britney S Morales

      I want to set contact_us.aspx like the web site default page, but i cant reach the iis admin, can i do by another way?, maybe the web.config..

      keep Learning and you never will be out of date...

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      You normally would do it through the iis admin. There is a tab where you set the default page. If that is not an option you can do some http re-direction so when the default.aspx page is requested you could auto redirect. The easiest way to do this is to create a default.aspx page and in the page load event to a response.redirect("contact_us.aspx") Hope that helps. Ben

      1 Reply Last reply
      0
      • B Britney S Morales

        I want to set contact_us.aspx like the web site default page, but i cant reach the iis admin, can i do by another way?, maybe the web.config..

        keep Learning and you never will be out of date...

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

        No, you need to tell IIS what page to load by default. You could just change your index.aspx, or whatever, to redirect to the page you want ? Or does the index page get used elsewhere ?

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        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