CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 redirect after login based on GroupID (c#)

Print topic Send  topic

Author Message
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!
View profile  Send private message
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)

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.