C#表单登录问题 [英] C# form login problem
本文介绍了C#表单登录问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好!
如何从数据库中获取一个userId并将其保存到Windows窗体中的变量中.
Hello!
How to get A userId from DB and save it to variable in my windows form .
推荐答案
请参阅下面的链接以获取相关文章和内容;讨论:
使用C#登录表单验证 [启动和登录表单(问题和解决方案) [ ^ ]
c#中登录表单的代码 [
Hi,
Refer the links below for related articles & discussions:
Login Form Validation in C#[^]
Splash and Login Forms (Problems and Solutions)[^]
Code for login form in c#[^]
--Amit
首先,您必须在表中插入"UserID"值.
之后,要检索数据,您必须使用命令
必须从TableName中选择*"之后,您必须插入数据,这意味着将使用此命令保存数据
插入TableName值"
First up all You have to insert the ''UserID'' value into the table.
after that for retrieving the data u have to use command
"select * from TableName" after that u have to insert the data means the data will be saved by using this command
"insert into TableName values"
这篇关于C#表单登录问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文