如何实现登录身份验证代码 [英] how to implement the code for login authentication

查看:94
本文介绍了如何实现登录身份验证代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以在logindetails.xml中找到所有详细信息


但是我们如何使用xml文件在后面的代码中进行验证.

以及如何对xml文件中的usr进行身份验证/验证

you have all the details at the logindetails.xml


but how we validate in code behind using the xml file.

and how to authenicate/validate the usr in xml file

推荐答案

使用asp:login控件并验证用户.

如果您在xml文件中拥有所有logindetails,则只需对其进行解析并获取适当的数据即可.

使用LINQ to xml解析xml并检查用户提供的数据.

如果您仍有问题,请告诉我. :cool:
Use asp:login control and validate the user.

If you have all the logindetails in an xml file just parse it and get the appropriate data.

Use LINQ to xml to parse the xml and check with the data provided by the user.

Let me know if you are still having problems. :cool:


这篇关于如何实现登录身份验证代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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