Results 1 to 7 of 7

Thread: Website Default Page - How to Set?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2006
    Location
    Texas
    Posts
    246

    Website Default Page - How to Set?

    I am working on a web application and have set my start up page to my website to be my user logon form frmLogon.aspx. I am using IIS and under the properties for my website I have set the start page to be frmLogon.aspx in my VS studio Project. I went to the document page of the properties page for my website and set the Enable Default content check mark to true and entered frmLogon.aspx as the first item in the list. When I tried to go to the URL for my site I was still getting the Default.htm which doesn’t exist on my site. I even removed all the other documents from the list (Default.htm, Default.Aspx…..) so that frmLogon.aspx was the only document in the list and still no luck. Does any body know what I’m doing wrong.
    I’m using Visual Studio 2003, Window 2003 Server, small business edition, and I think IIS or whatever the default web server for 2003 is.

    Thanks
    GEM

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Website Default Page - How to Set?

    You don't need to do all that stuff
    Just copy the website folder inside the inetpub\wwwroot folder and make a virtual dir out of (from the IIS of course).
    Now add your frmLogin.aspx to the default document list and everything must work.

    p.s. to open the website use http://localhost/VirtualDirName/
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2006
    Location
    Texas
    Posts
    246

    Re: Website Default Page - How to Set?

    That works fine for local host on my computer which is XP. I did exactly has you said and it worked. I tried to do the same thing on my server which is Windows 2003 Server small business server but it didn't work. I have to type in http://MyServer/Myrta/frmLogon.aspx in order to get to my log on page. Myrta is the name of of folder.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Website Default Page - How to Set?

    Did you change the order for the default documents in IIS so yours is at the top of the list?
    I think asp.net takes "default.aspx" as the home page?

    Moved
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Sep 2006
    Location
    Texas
    Posts
    246

    Re: Website Default Page - How to Set?

    I have been messing with it since my last post. I created an Index.htm and added it to the list and deleted all of the other documents in the list and it worked. I then created an index.aspx and added it to the list and deleted all the other items so that index.aspx is the only item in the list and it didn't work. I haven't tried Default yet.
    Do you think the fact that it's an aspx is the problem?
    Does it matter whether or not it's name is default or index?

    Everything runs exactly as it should once I get to my logon form. I have a ton of aspx pages in my application and they all work just fine.

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Website Default Page - How to Set?

    I had this issue on a host. When I renamed the pagge from index.aspx to default.aspx it worked. Different hosting companies may have things set different but usually index or default are the defaults.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Website Default Page - How to Set?

    Your hosting control panel should provide this option to you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width