.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

setting start page

Posted By: Shweta     Posted Date: January 17, 2011    Points:2   Category :ASP.Net
i have uploaded website on the server.
the main page of the project is Home.aspx.but when i open the site on the browser its doesnt show up Home.aspx rather ir shows Default.aspx which is not the start page...
what should i do to open Home.aspx as first page after uploading website on the server.

Responses
Author: Manas Patnaik          Accepted Answer   
Posted Date: January 17, 2011     Points: 10   

You need to change the Stat Page Order of your Virtual Directory at Server , If you have the access to the hosting .

Or

else Add a Default page to your web project and in that Default page redirect it to the Home.aspx page.

Manas Patnaik
http://manaspatnaik.com/blog
Author: Shweta             
Posted Date: January 17, 2011     Points: 5   

but how do i change the start page order of the virtual directory..
plz tell the procedure..

Shweta Agashe
.Net Developer,Global Infobase Solutions.
Author: Manas Patnaik             
Posted Date: January 17, 2011     Points: 5   

Go to Your Hosting Provider Login with your credential.

Then if you have Dotnetpanel from hosting provider than look Out for the Default Decument ListBox.

Check as shown in Fig , Here its on the Right Side-:
http://www.aspnet-hosting.co.za/hosting/dotnet-panel-example.png

Make Sure That your Default.aspx is there .Its always recomended not to change/ add other than Default.aspx.But if you are sure then you can add yout startup document.Also make sure removing Default.asxp or adding Home.aspx does not effect your website.

Above are the steps you can follow.
But i will recomend you to continue with Response.Redirect option in Default.aspx page in your project.As mentioned in the first answer as last option.

Thanks

Manas Patnaik
http://manaspatnaik.com/blog
Author: Shweta             
Posted Date: January 17, 2011     Points: 5   

as suggested by u i have redirected the default page to Home.aspx through the page _load event of default.aspx.
then i hv published and uploaded it on the server.
now running it gives the error as below:


Forbidden

You do not have permission to access this document.
Web Server at shardaclasses.com





------------------------------------------------------



plz reply me to resolve this issue...asap...

Shweta Agashe
.Net Developer,Global Infobase Solutions.
Author: Manas Patnaik             
Posted Date: January 17, 2011     Points: 5   

Can you share the link ?

Manas Patnaik
http://manaspatnaik.com/blog
Author: Shweta             
Posted Date: January 17, 2011     Points: 5   

as suggested by u i have redirected the default page to Home.aspx through the page _load event of default.aspx.
then i hv published and uploaded it on the server.
now running it gives the error as below:


Forbidden

You do not have permission to access this document.
Web Server at shardaclasses.com





------------------------------------------------------



plz reply me to resolve this issue...asap...

Shweta Agashe
.Net Developer,Global Infobase Solutions.
Author: Shweta             
Posted Date: January 17, 2011     Points: 5   

its
http://www.shardaclasses.com

Shweta Agashe
.Net Developer,Global Infobase Solutions.
Author: Manas Patnaik             
Posted Date: January 17, 2011     Points: 5   

Ok its Howing Resource Not Found and Access Issue .

Your Webserver is not configured properly.

Can you check , if you have Aspx Document in the Document list.

And Also Upload a Simple HTML file with name "Index.htm" and Try .

Manas Patnaik
http://manaspatnaik.com/blog
Author: Manas Patnaik             
Posted Date: January 17, 2011     Points: 5   

Can you share the link ?

Manas Patnaik
http://manaspatnaik.com/blog
Author: Shweta             
Posted Date: January 17, 2011     Points: 5   

its
http://www.shardaclasses.com

Shweta Agashe
.Net Developer,Global Infobase Solutions.
Author: Manas Patnaik             
Posted Date: January 17, 2011     Points: 5   

Ok its Howing Resource Not Found and Access Issue .

Your Webserver is not configured properly.

Can you check , if you have Aspx Document in the Document list.

And Also Upload a Simple HTML file with name "Index.htm" and Try .

Manas Patnaik
http://manaspatnaik.com/blog
Author: Manas Patnaik             
Posted Date: January 17, 2011     Points: 5   

Ok its Howing Resource Not Found and Access Issue .

Your Webserver is not configured properly.

Can you check , if you have Aspx Document in the Document list.

And Also Upload a Simple HTML file with name "Index.htm" and Try .

Manas Patnaik
http://manaspatnaik.com/blog
Author: Shweta             
Posted Date: January 17, 2011     Points: 5   

but other websites hosted on the same server are working properly...so cant understnd the issue...
and at this stage we cannot add index.html page..

Shweta Agashe
.Net Developer,Global Infobase Solutions.
Author: Manas Patnaik             
Posted Date: January 17, 2011     Points: 5   

Check out with the Hosting Provider and Please Contact with them?

If you have dedicated server , let us know which Control Panel you are using?

Manas Patnaik
http://manaspatnaik.com/blog
Author: Shweta             
Posted Date: January 18, 2011     Points: 5   

thnx Manas,

REspones.redirect() worked...

Shweta Agashe
.Net Developer,Global Infobase Solutions.


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend