juniorCsh
Posts: 1
|
Posted: 07/24/2011, 11:11 AM |
|
Please someone show me how to redirect web page from login page based on GroupID.
I did this:
if (Session.Count("GroupID")="1")
RedirectUrl = "Firstpage.aspx";
else
Response.Redirect(RedirectUrl);
But it's not work with
Error 1: 'System.Web.UI.Page.Session' is a 'property' but is used like a 'method'
Really appreciate for your help!
|
|
|
datadoit
|
Posted: 07/24/2011, 1:08 PM |
|
You want to compare the value. Use '==', not '='.
To compare: == (if this is equal to that)
To assign: = (this equals that)
|
|
|
|