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


Please Help Members By Posting Answers For Below Questions

just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6487


What is debug class?what is trace class? What differences are between them? With examples.

1612


Can main method override?

586


What is ambiguity in inheritance?

625


What is abstract class in oop?

536






What is the significance of classes in oop?

590


Can we have inheritance without polymorphism?

617


What is class in oop with example?

623


Is this job good for future? can do this job post grduate student?

1694


What is cohesion in oop?

624


Why do we need oop?

671


c++ program to swap the objects of two different classes

1766


What is overloading and its types?

618


What is abstraction and encapsulation?

575


What is a superclass in oop?

671