通过使用(用户电子邮件/用户名和密码)访问登录表单. [英] Login form by using a (UserEmail/User name and password) to access it.

查看:248
本文介绍了通过使用(用户电子邮件/用户名和密码)访问登录表单.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我需要一个登录页面,其中有两个文件名(用户电子邮件/用户名和密码).输入有效的用户电子邮件和密码或用户名和密码后,我们便可以访问它.

谢谢

Hi all,
I need a login page where there are two filelds(UserEmail/User name and password).When either entering a valid UserEmail and password or User name and password we can able to access it.

Thanks

推荐答案

如果您使用的是Visual Studio,则只需将LOGIN控件添加到表单中即可.
并获得现成的登录表格.

您还可以从VALIDATION控件中应用 requiredfield验证器,使其成为必填字段
如果要检查电子邮件地址是否有效,则可以应用正则表达式验证器进行同样的操作.
If you are using visual studio then you can just add LOGIN control to your form
and get a ready made login form.

You can also apply requiredfield validator from VALIDATION control to make it a mandatory field
and if you want to check the e-mail address is valid then you can apply regular expression validator to do the same.


尝试以下示例....

http://ganeshmohan.wordpress.com/2008/05/13/aspnet-c -login-page/ [ ^ ]
try this example....

http://ganeshmohan.wordpress.com/2008/05/13/aspnet-c-login-page/[^]


你好朋友

1)提供两个用于检查用户身份验证的功能,第一个基于电子邮件,然后另一个基于用户名

2)使用字符串函数比较用户名/用户电子邮件文本框的值

3)然后根据其结果,您需要调用一个函数,如果它将通过电子邮件发送,然后调用使用电子邮件的函数,并且如果它是用户名,则使用用户名函数进行调用以检查用户身份验证



提示:在字符串比较中,您可以检查字符串(在文本框中)是否包含"@"或".com"或您的用户名中不允许的任何事物唯一字符,按此,您可以如果是电子邮件或用户名,则会得到您的比较结果.!!!!!!


试试这个...我认为这就是您需要的....???
Hello friend

1) make two function for checking user authentication the first is based on email then the other one is based on user name

2) use a string function to compare a user name/user email text box value

3) then as per its result you need to call a function if it will email then call a using email function and if it is a user name then call using user name function to check the user authentication



HINTS : in string comparison you can check that the string (in text box) will contain ''@'' or ''.com'' or any thing unique character which is not allowed in ur user name filed and as per this you can get ur comparison result if it is email or user name..!!!


try this... i think this is what you need is....???


这篇关于通过使用(用户电子邮件/用户名和密码)访问登录表单.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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