Click here to Skip to main content
16,012,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a site in which I have defined my Start up page, say Sample.aspx.
After deployment in server named “Siteserver”, Now whenever I open link
http:// Siteserver /, it opens first Sample.aspx page.
Now, my question is, if I have more than one page like Sample1.aspx and Sample2.aspx and I want to open http:// Siteserver /Sample2.aspx directly, how can I do this. It is redirecting again to Sample.aspx.
How can I achieve this.
Thanks
Sreenath
Posted
Comments
Monjurul Habib 14-Feb-11 10:02am    
Please share your code to help you out.

In case you are specifying the full URL of the page, like http://Siteserver/Sample2.aspx, it should open without any issue.

And if you are being redirected to a particular page every time, make sure if there is any authentication & authorization kind of thing playing its part.
 
Share this answer
 
Change the default document in IIS to whatever page you want to be opened by default.
 
Share this answer
 
Comments
Sreenath Gv 14-Feb-11 5:09am    
Hi JIm, thanks a lot. But I mean...what ever page I mention in my URL, I want to open that page itself. Like if I open http:// Siteserver /Sample2.aspx, then it sould open the Sample2.aspx. So, in this way if I have 10 pages then we dont know which page user is goin to select directly right.
jim lahey 14-Feb-11 5:19am    
you've lost me.. I'm not sure what you mean

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900