如何使我命名的Login.aspx页替换为Default.aspx页 [英] How to make my named Login.aspx page repalce Default.aspx page

查看:106
本文介绍了如何使我命名的Login.aspx页替换为Default.aspx页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个项目上,我已将我的第一页Login.aspx页命名为第二页,并将我的第二页命名为Default.aspx页,有没有一种方法可以使Login.aspx页成为第一个加载的页面,而无需更改页面名称.如您所知,Web浏览器查找默认页面或索引页面以进行加载.

I am working on a project, I have named my first page Login.aspx page and my second page as Default.aspx page, is there a way to make Login.aspx page be the first loaded page without changing pages nams. as you know web browser look for Default or Index page to loadup.

推荐答案

您要做的非常简单的事情就是选择您要继续浏览的页面解决方案资源管理器中的页面",然后右键单击页面Login.aspx,然后选择设为起始页",然后选择

一旦发现有用的话,就对我的伴侣进行评分

谢谢与问候
基数:rose:
Its very simple all u have to do is select the page to whom u wana keep the starting page in the solution explorer, and then right click the page ur case Login.aspx and select Set As Start Page and ur done

do rate my anser once you find it useful

Thanks & Regards
Radix :rose:


假定您正在使用asp.net身份验证,那么如果用户未登录,则login.aspx将是显示的第一页.

如果您使用自己的身份验证类型,则需要确保将未经身份验证的请求首先定向到login.aspx.

如果这还不足以满足您的需要,则需要在IIS中修改网站的设置,以使login.aspx显示在第一页;但是,这不是必须的,应该按上述方法进行处理.
Assuming you are using asp.net authentication then if the user is not logged in, the login.aspx will be the first page to display.

If you are using your own type of authentication then you need to ensure that unauthenticated requests are directed first to login.aspx.

If none of this sufficient for you, then you need to modify the settings for the website in IIS to make login.aspx this first page displayed; however, this should not be necessary and should be handled as above.


您好
只需转到.net框架中的解决方案资源管理器"
然后在"Login.aspx"上单击鼠标右键,然后单击 设置为启动页面
然后运行您的项目.
Hello
Just Go To The "Solution Explorer" in the .net frame work
and right on the "Login.aspx" and click to the Set As Start Up Page
then run your project.


这篇关于如何使我命名的Login.aspx页替换为Default.aspx页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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