以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  如何获得内置用户登录的密码?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=57518)

--  作者:lyfxybc
--  发布时间:2014/9/25 22:52:00
--  如何获得内置用户登录的密码?

如何写内置用户登录窗口“确定”按钮的代码?

 

下面是自定义用户管理的

Dim UserName As String = e.Form.Controls("UserName").Value
Dim cmd As New SQLCommand
Dim dt As DataTable
Dim dr As DataRow
cmd.C
If UserName = ""  Then
    Messagebox.show("请选择用户!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
    Return
End If
cmd.CommandText = "Select * From {Users} Where [Name] = \'" & UserName & "\'"
dt = cmd.ExecuteReader
If dt.DataRows.Count = 0 Then
    Messagebox.show("此用户不存在!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
    Return
End If
dr = dt.DataRows(0)
If e.Form.Controls("PassWord").Value = dr("Password") Then
    _UserName = UserName
    _UserGroup = dr("Group")
    e.Form.Close
Else
    Messagebox.show("密码错误!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
End If


--  作者:有点甜
--  发布时间:2014/9/25 22:53:00
--  
 内置用户,无法获取user的登陆密码的。
--  作者:有点甜
--  发布时间:2014/9/25 22:54:00
--  
 你也无法控制内置登陆窗口的确定按钮的代码编写
--  作者:lyfxybc
--  发布时间:2014/9/25 23:02:00
--  
谢谢
--  作者:lyfxybc
--  发布时间:2014/9/26 0:12:00
--  

 如图,本人设计一个用户登录,用代码直接调用内置用户,并可以把开发者和管理员去掉,但是无法在确定按钮中写代码,在密码框输入密码后,点确定,调用内置设置的密码,点确定进入


图片点击可在新窗口打开查看此主题相关图片如下:14.bmp
图片点击可在新窗口打开查看

图片点击可在新窗口打开查看此主题相关图片如下:15.bmp
图片点击可在新窗口打开查看
[此贴子已经被作者于2014-9-26 0:15:56编辑过]

--  作者:程兴刚
--  发布时间:2014/9/26 1:01:00
--  

1、自己重新建帖子;

2、给示例文件比码文字强一百倍!