what is the main difference between c and c++?
Answer Posted / lalit
public int validateuser(string username, string passwd)
{
con.Close();
con.Open();
cmd = new SqlCommand("sp_VALIDATION",con);
rd = cmd.ExecuteReader();
bool b = rd.Read();
if (b == false)
{
if (FormsAuthentication .Authenticate
(username ,passwd ))
return 2; //For Administrator
else
return 0; //For Unauthorized
User
}
else
return 1; //For Normal User
}
***************************************************
protected void btnenter_Click(object sender, EventArgs e)
{
int tempvar= stdinfo.validateuser
(txtboxadminname.Text ,txtboxpassword.Text);
if (tempvar == 2)
Response.Redirect("Admin/AdminHomePage.aspx");
else
lblerrormsg.Text = ("You Are Not Authorized
Admin!");
lblerrormsg.Visible = true;
}
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
What are the two different types of polymorphism?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What are the important components of cohesion?
What is the real life example of polymorphism?
What is overriding in oops?
What is advantage of inheritance?
What does sksksk mean in text slang?
Can a varargs method be overloaded?
What does it mean when someone says I oop?
What is the purpose of enum?
What is static in oop?
What is object and class in oops?
Where You Can Use Interface in your Project
What are the benefits of polymorphism?