Upload ASP .Net site

Last post 10-03-2008 10:03 AM by developer250. 2 replies.

Sort Posts:

  • Upload ASP .Net site

    10-03-2008, 7:50 AM
    • Member
      346 point Member
    • EssCee
    • Member since 05-13-2006, 3:25 PM
    • Posts 248

    I have a site created in .Net 3.5. I would like to upload this site to Windows Server 2003 so it can be browsed by end users.

    I would like the site to be accessible by the end user typing www.mysite.com (but keeping in mind this is an internal site only) and not htttp://server/mysite/default.aspx - how would i achieve this please?

    Also what would i need on the server other than .Net 3.5 framework?

    Thanks

  • Re: Upload ASP .Net site

    10-03-2008, 8:16 AM
    • Participant
      1,507 point Participant
    • Mitesh_Darji
    • Member since 04-17-2008, 8:54 AM
    • Ahmedabad
    • Posts 310

    i think you want to achive this things like when user type on browser www.mysite.com it will Brouse your default.aspx

    for that you create one HTML file in your root directory

    and inside of this HTML Page 

    (1) create one JavaScript :

        <script language="javascript" type="text/javascript">
            function redirect()
            {
                document.location.href = "http://www.mysite.com/mysite/default.aspx";
            }
        </script>

     (2) in your body onload event call this function so when user type www.mysite.com it will redirect your destination page

    <body onload="redirect()">
        <span>
            if unable to redirect please click here <a href="http://www.mysite.com/mysite/default.aspx">Go to Mysite</a>
        </span>
    </body>

    I hope U understand what i am saying to you. 

    Please Mark as Answred If This Blog has Helped You.


    Regards
    Mitesh Darji

  • Re: Upload ASP .Net site

    10-03-2008, 10:03 AM
    • Member
      30 point Member
    • developer250
    • Member since 09-18-2007, 2:48 PM
    • Pakistan
    • Posts 14

    Hello Dear Fellow!

    Hmm...You don't need to write any hard-code for it.t is very simple. You don't need to worry about this thing

    Because

    1 - The default directory structure looks for Default.aspx by default. Just upload your web,when you will write the URL,it will lead to http://www.mysite.com/Default.aspx

    2 - Second way is to set default page while you develop your web site/solution. The page,which you want to set as default page of your web site,simply right click at that page in Visual Studio 2005 Pro/Express and then menu will open and click at 'Set as Start Page"

     

    Hope this will help you.

    Thank you

    Software Developer / Web Developer
Page 1 of 1 (3 items)