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
What is abstraction with example?
What is ambiguity in inheritance?
What is byval and byref? What are differences between them?
What is abstraction example?
What is inheritance in oop?
What is the point of polymorphism?
What is the difference between encapsulation and polymorphism?
What is abstraction in oop?
What is the point of oop?
How do you achieve polymorphism?
What is methods in oop?
#include
i got a backdoor offer in process global,Bangalore..Can i work with it?
Please send ford technologies placement paper 2 my mail id
Why is oop better than procedural?