asp.net中用于登录控制的代码 [英] Code for login control in asp.net

查看:78
本文介绍了asp.net中用于登录控制的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我是ASP.NET的乞gg,我想要登录控件的代码使用C#编程语言.

Iam Begginer to ASP.NET , i want code for a login Control  using C# programming Language.

登录 控件包含用于用户名和密码的文本框以及一个选中项 框,允许用户指示是否要存储服务器 他们的身份使用ASP.NET成员身份,并自动成为

The Login control displays a user interface for user authentication. The Login control contains text boxes for the user name and password and a check box that allows users to indicate whether they want the server to store their identity using ASP.NET membership and automatically be authenticated the next time they visit the site.

感谢您&

推荐答案

如果您是一个初学者,我想您是在教自己,或者您正在上一节课,为您提供指导并为您提供有意义的练习.在学习过程中,使用内置控件没有任何好处,您应该编写自己的登录控件作为练习.毋庸置疑,作为一个初学者,您不应该编写任何人都会使用的登录控件,在尝试编写人们有意破坏的东西之前,您应该知道自己在做什么.但是,然后,作为一个初学者,您就不应该写任何您可以为此付费的东西,只是安全性在没有办法"的另一层上堆积了.

If you''re a beginner, I assume you''re teaching yourself, or you''d be in a class that gave you direction and provided you with meaningful exercises.  As you''re learning, there is no benefit in using built in controls, you should write your own login control as an exercise.  It goes without saying that, as a beginner, you should not be writing a login control that anyone will use, you should know what you''re doing before attempting to write something that people are going to deliberately try to break.  But then, as a beginner, you shouldn''t be writing anything that you''re paid for anyhow, it''s just that security piles on an extra layer of ''no way''.


如果您不打算将控件创建为学习练习,则ASP.NET 2.0+包含您可以使用的登录控件.
If you aren''t trying to create the control as a learning exercise, ASP.NET 2.0+ includes a login control that you can uses.


这篇关于asp.net中用于登录控制的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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