vb.net中登录页面的代码 [英] code for login page in vb.net

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

问题描述

任何人都可以帮助我如何在vb.net中编写登录页面的代码.

any body help me how to write the code for login page in vb.net

推荐答案

出了什么问题?我们绝对不会为您编写代码.确切的操作取决于您的要求,但是总体思路是从用户那里获取用户名和密码,将其与用户数据库进行比较(可能是密码的哈希值,而不是密码本身!),然后按照
What''s the problem?? We''re definitely not going to write the code for you. Exactly what you do depends on your requirements, but the general idea is to get a username and password from the user, compare those against a database of users (prefferably a HASH of the password, not the password itself!!), and proceed as required.


戴夫是正确的.我们可以通过提供一些建议和步骤来帮助您,但是我们绝对不会为您提供代码.如果您已经完成研究,并且已经尝试过一些但遇到困难,我们很乐意为您提供帮助.您是否在在问题与解答"中提出问题 [通用登录控件 [具有表单身份验证的基于角色的安全性 [
Dave is right. We can help you by giving some advices and steps on how to do it but we will definitely not give you code. We are happy to help if you have already done your research, and if you already tried something but got stuck. Have you read rule #1 when asking questions in Q/A[^]?

Since I have no idea if its a Web or Windows forms application, I''ll give you some articles for both. I hope it gives you an idea. Please have a look.

Windows Forms:
Generic Login Control[^]

Web:
Role-based Security with Forms Authentication[^]


阅读本文,可能对您有帮助

http://msdn.microsoft.com/en-us/library/ms178331 (v = vs.80).aspx [
Read this article, may this help you

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


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

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