Hi may i ask how to Get value from database display in textbox?I had a table name mttuser.When i login it will automatic show me the personal informaion.
here is my code
private void Process_Load(object sender, EventArgs e)
{
gent_login frm_login = new gent_login();
using (Mttuser_DAL dalObj = new Mttuser_DAL())
{
if (frm_login.txt_proximity.Text != null)
{
try
{
Mttuser row = new Mttuser();
row.us_UserID = txt_id.Text;
row.us_EmpName = txt_name.Text;
dalObj.GetRecords().Cast<Mttuser>().ToList();
}
catch (Exception es)
{
MessageBox.Show(es.Message);
}
}
}
}
I had try it but it still no display any information that store in database.It is not using mysql or sql query because it had the connect code behind the code.