在ASP.Net中打开除启动页面以外的页面 [英] Opening Page other than Startup Page in ASP.Net

查看:53
本文介绍了在ASP.Net中打开除启动页面以外的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个定义了启动"页面的网站,例如Sample.aspx.
在名为"Siteserver"的服务器中部署后,现在每当我打开链接
http://Siteserver/,它将打开第一个Sample.aspx页面.
现在,我的问题是,如果我有多个页面,例如Sample1.aspx和Sample2.aspx,并且我想直接打开http://Siteserver/Sample2.aspx,该怎么做.它再次重定向到Sample.aspx.
我该如何实现.
谢谢
Sreenath

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

推荐答案

如果您要指定页面的完整URL,例如http://Siteserver/Sample2.aspx,则应打开该页面而没有任何问题.

而且,如果您每次都被重定向到特定页面,请确保是否存在任何身份验证和验证.
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.


将IIS中的默认文档更改为您要默认打开的任何页面.
Change the default document in IIS to whatever page you want to be opened by default.


这篇关于在ASP.Net中打开除启动页面以外的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆