VB.Net的ASP.Net登录页面 [英] ASP.Net Login Page with VB.Net

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

问题描述

我正在一个网站上工作,该网站有一个主页,两个页面(当在字段中输入报告后发送电子邮件)和两个历史页面.这两个历史页面包含已提交并存储在SQL数据库中的过去报告.我在帐户"文件夹中都有这两个历史网页.从网络访问任一历史页面时,它们都将重定向到登录页面.我在使登录页面正常工作时遇到问题.当网站在本地主机上运行时,我能够使其正常运行,但是一旦从Web浏览器运行它,登录页面便不会连接到SQL Server以验证用户名和密码.如何将页面指向正确的服务器,或者如何使用活动目录允许某些人看到历史记录,但不是所有人?

I am working on a website that has a homepage, two pages that send out emails when reports have been entered into the fields, and two history pages. The two history pages contain the past reports that have been submitted and have been stored within a SQL database. I have both of these history webpages in the Account folder. When either history page is accessed from the web they are redirected to the login page. I am having a problem with getting the login page to work. I am able to get it to work perfectly when the website is running off the local host but once I run it from the web browser the login page does not connect to the SQL server to validate the username and password. How can I point the page to the correct server or how can I use active directory to allow some people to see the history but not everyone?

推荐答案

用于表单身份验证请看一下此链接:

http://www.asp. net/web-forms/tutorials/security/membership/creating-the-membership-schema-in-sql-server-cs [ http://msdn.microsoft.com/en-us/library/ff647070.aspx [ ^ ]

另一方面,如果您正在使用活动目录,请查看以下内容:

http://msdn.microsoft.com/en-us/library/ff647405.aspx [ ^ ]



http://support.microsoft.com/kb/323176 [
For forms authentication I would take a look at this link:

http://www.asp.net/web-forms/tutorials/security/membership/creating-the-membership-schema-in-sql-server-cs[^]

and

http://msdn.microsoft.com/en-us/library/ff647070.aspx[^]

If on the otherhand you are using active directory take a look at these:

http://msdn.microsoft.com/en-us/library/ff647405.aspx[^]

and

http://support.microsoft.com/kb/323176[^]


这篇关于VB.Net的ASP.Net登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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