问题描述
亲爱的我使用不同部门的登录面板。
主管理员比部门使用。有一个名称部分类似第一级,第二级,第三级。
当我登录时比从数据库存储价值但问题是这个。当新表单打开时,我无法使用数据库中的登录基值。
con.open();
SqlCommand str = new SqlCommand(Select * from Admin where LoginId ='+ LoginId.text .toString +',con);
SqlAdapter adp = new SqlAdapter(str);
DataTable dt = new DataTable(asp);
con.close();
这里我想要stor Levele Id,员工姓名一个Id在新表格的LoginId基础上。
Dear i m using login panel for different department .
Master admin than Department Using . there are one designation Section Like Level one , Level two , level three .
when i login than store value from data base but problem is this . when new form is openning than i m unable to use than login base value from data base.
con.open();
SqlCommand str = new SqlCommand("Select * from Admin where LoginId = '"+LoginId.text.toString +"' ",con);
SqlAdapter adp = new SqlAdapter(str);
DataTable dt = new DataTable(asp);
con.close();
here i want stor Levele Id , Name Of Employee One Id On The base of LoginId in New Form .
推荐答案
这篇关于你如何在全局变量中存储价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!