Why does this code block say "not all code paths return a value"?
- by Kishan
I wrote following code...but i am getting Error like:
Error 1 'LoginDLL.Class1.Login(string, string, string)': not all code paths return a value
Please help me...
Thanks in advance...
My code is as given below...
public int Login(string connectionString,string username,string password)
{
SqlConnection con=new…