我的aspx登录功能有问题 [英] Problem with my aspx login function

查看:108
本文介绍了我的aspx登录功能有问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个html网站,但我想在Expression Web中使用aspx登录添加登录。我遇到的问题是我有一个index.htm,并且aspx控件希望我为我尝试登录访问的页面设置default.aspx。多数民众赞成在我的实时服务器上的错误。我可以用密码保护一个非默认页面的页面吗?并且我可以在一个页面(aspx ext)上执行aspx功能,其余的网站是html吗?

提前感谢帮助
上帝的人

解决方案

您是否在表单配置上尝试过defaultUrl和loginUrl?

< authentication mode =" Forms">
< forms loginUrl =" YourLoginPage.aspx" defaultUrl = QUOT; YourDefaultPage.aspx" />结果< /认证>搜索结果,干杯,

I have an html website, but I want add a login using the aspx login in Expression Web.  the problem Im having is that I have an index.htm and the aspx control wants me to have it default.aspx for the page I am trying to have login access to. thats where I get the errors on my live server.  Can i password protect one page that is not the default page? and can I perform aspx fucntion on one page (aspx ext) with the rest of the site being html?

Thanks in advance for the help
Man of God

解决方案

Have you tried defaultUrl and loginUrl on the forms configuration?

<authentication mode="Forms">
  <forms loginUrl="YourLoginPage.aspx" defaultUrl="YourDefaultPage.aspx" />
</authentication>

Cheers,


这篇关于我的aspx登录功能有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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