i am new to ASpx coding with C#.
i am created a login page which will lock the user account if he tries more then three times with wrong password. for that i made global.asax file as
void Application_OnStart(Object sender ,EventArgs E)
{
Application["Hcount"] = 0;
}
void Session_OnStart(Object sender ,EventArgs E)
{
Session["tries"] =0;
// Session start-up code goes here
}
My Login Form Page Has the following Code genreating error that i cannot use comparison operators Application and Session Variables are objects the code with error is
if (Application["Hcount"] <= Session["tries"])
how i can use these variables in my code sothat they work smoothly as they work when same is written in
VB .Net
dinesh Rana