刚学ASP.NET 用VS2005对着书上的列子抄了个网站,可书上没说明怎么修改首页。
例题上的首页是 Defualt.aspx ,我想该为History.aspx.我试着改了Web.config。
我把
<!--Set forms authentication and define the login page-->
<authentication mode="Forms">
<forms loginUrl="Default.aspx" />
</authentication>
换成
<!--Set forms authentication and define the login page-->
<authentication mode="Forms">
<forms loginUrl="History.aspx" />
</authentication>
可还是没用,请问各位到底要怎么改?
例题上的首页是 Defualt.aspx ,我想该为History.aspx.我试着改了Web.config。
我把
<!--Set forms authentication and define the login page-->
<authentication mode="Forms">
<forms loginUrl="Default.aspx" />
</authentication>
换成
<!--Set forms authentication and define the login page-->
<authentication mode="Forms">
<forms loginUrl="History.aspx" />
</authentication>
可还是没用,请问各位到底要怎么改?
解决方案 »
- 对DataTable进行动态的行转列处理
- 当我操作数据库的时候,报了这个错误?以超过了锁请求超时阶段!!!
- 动态添加的控件状态保存的问题
- 怎么创建一个ImageHandler.ashx的HttpHandler从数据库中读取图片
- 关于DetailView的问题,应该很入门,可是既然没人问过....
- 关于asp:RadioButtonList的版面问题
- 江湖救急!!web下的水晶报表如何只打印报表里的内容,分不够再加!!豁出去了
- 关于如何处理XML的问题
- 急!!!
- 在asp.net中怎么包含文件
- 文章数据表 (article), 其中有一个字段categoryId 是varchar 类型,存放多个文章分类的ID,代表这篇文章属于多个分类。
- "10507001-任何中文",不包括双引号,它的正则表达式怎么写
<forms loginUrl="History.aspx" />
</authentication>
===============>
在Forms验证的时候才有效。要修改首页,可以在IIS里修改。
IIS->文档->添加你想要的首页(history.aspx),把位置排在第一位