1
Answer

mscorlib.dll Exception error occur when try to login

Eric Mbiada

Eric Mbiada

8y
281
1
Hello Please can anyone help me with this error below I am new to Hashing
 
exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll An exception oftype 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but was not handled in user code
 
This occur when I try to login with a user I registered previously. The Code run find with no error. The Hashing worked when I register  the user
 
Please find the code attached
 
Eric 

Attachment: HashandSalt.rar

Answers (1)
0
Vikram N
NA 66 14.7k 11y
thank u Sanjeeb...Lemme try it out...:)
0
Sanjeeb Lenka
NA 22.1k 1.3m 11y
check this code:

public int SaveEmp(Emp objEmp)
{
using (SqlConnection con = new SqlConnection("Data Source=.\\SQLEXPRESS;Initial Catalog=Test;Integrated Security=True"))
{
 string query = "Emplyentry";  //stored procedure name
using (SqlCommand cmd = new SqlCommand(query , con))
{
cmd.Parameters.AddWithValue("@EmpName", objEmp.EmpName);
cmd.Parameters.AddWithValue("@EmpSal", objEmp.EmpSal);
con.Open();
int a = cmd.ExecuteNonQuery();
con.Close();
return a;
}

}
}
0
Vikram N
NA 66 14.7k 11y
Thanx a lot for ur kind reply Sanjeeb,That linkhelped me a lot...
But in dat example, database tables are used... But i need stored procedures usage... kindly help:)