在Asp.net注册/登录 [英] Register/Login in Asp.net

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

问题描述

我想使用C#在asp.net中创建注册/登录模块。我应该使用vs2010默认的CreateUserWizard / Login控件,还是通过编写自己的代码来自定义它。是否可以在createuserwizard中添加文件?哪一个更好?或其他方式注册/登录模块?注册/登录模块有多少种方式?在现实世界中通常使用哪一个?我想为Web应用程序开发它。

I want to create a registration/login module in asp.net using C#. should i use vs2010 default CreateUserWizard/Login control or customize it by writing own code. Is it possible to add fileds in createuserwizard? Which one is better? or other way to register/login module? How many ways to make register/login module? Which one usually used in real world? I want to develop it for web application.

推荐答案

很多站点使用,其他人使用自定义,有些使用jquery插件。你真的只需要找到你最熟悉的东西。
Lots of site use that, others use custom, some use jquery plugins. You really just have to find what you are most comfortable with.


如何将它们混合起来。

我使用登录控制来检查Active Directory然后使用自定义代码检查我的数据库,以确定用户是管理员,访客还是用户。



尝试使用以下链接了解ASP.NET登录控制

http://msdn.microsoft.com/ en-us / library / ms178329(v = vs.100).aspx [ ^ ]

对于CodeBehind文件中的自定义代码,请尝试以下链接

检查用户名和密码的代码 [ ^ ]



希望这有帮助
How about mix them both.
I use the Login Control to check against Active Directory and then use custom code to check in my database to find out if user is admin, guest, or user.

Try the below link to understand the ASP.NET Login Control
http://msdn.microsoft.com/en-us/library/ms178329(v=vs.100).aspx[^]
And for the custom code in the CodeBehind file try the below link
Code for checking username and password[^]

Hope this helps


Hi


我完全同意kshitij_CodeMaster ...创建自己的登录和注册页面,是的,它会认真帮助您了解登录页面的背景...阅读article [ ^ ]也将帮助您创建登录页面。代码也适用于asp.net
Hi
I fully agree with kshitij_CodeMaster...create your own login and register page and yes it will seriously help you understand the background of the login page...Read the article[^] will also help you creating your login page. code also work in asp.net


这篇关于在Asp.net注册/登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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