P
Pop
Hi alls,
I'm writing a asp.net mobile web app.
Here are the codes:
try
{
myConn.Open();
myCmd.Connection=myConn;
myCmd.CommandText = strSelect;
myReader = myCmd.ExecuteReader();
myReader.Read();
if ( myReader.HasRows)
{
Session("StaffID") = myReader.GetValue(0);
Session("Login") = true;
Response.Redirect("MainMenu.aspx",false);
}//end if
else
{
Response.Redirect("LoginFail.aspx",false);
}//end else
}//end try
it return me an error message like this:
'System.Web.UI.Page.Session' denotes a 'property' where a 'method' was
expected
This is the only error I get.
Is it something wrong with my syntax or what??
Thanks in advance.
Best regards,
Pop
I'm writing a asp.net mobile web app.
Here are the codes:
try
{
myConn.Open();
myCmd.Connection=myConn;
myCmd.CommandText = strSelect;
myReader = myCmd.ExecuteReader();
myReader.Read();
if ( myReader.HasRows)
{
Session("StaffID") = myReader.GetValue(0);
Session("Login") = true;
Response.Redirect("MainMenu.aspx",false);
}//end if
else
{
Response.Redirect("LoginFail.aspx",false);
}//end else
}//end try
it return me an error message like this:
'System.Web.UI.Page.Session' denotes a 'property' where a 'method' was
expected
This is the only error I get.
Is it something wrong with my syntax or what??
Thanks in advance.
Best regards,
Pop