//your login code
if(LoginSuccessful == true)
{
       //this authenticates the user
       FormsAuthentication.SetAuthCookie(userName, false);

       //If you are using the 2.0 Role provider, this will work
       if(HttpContext.Current.User.Identity.IsInRole("admin"))
            Response.Redirect("~/admin/admin.aspx");
       else
            Response.Redirect("~/user/user.aspx");

}

On 13 Mar 2007 17:47:59 -0700, LUCKY <[EMAIL PROTECTED]> wrote:
>
>   i created
> i created a small prject where i given role (admin,users) and granted
> permition to the users to access depends on users role to folders
> (admin,user).
> i also created login form,
>
> eg :
> user: admin , roles:admin
> user: user1 , roles:user
>
> i want a code when user log on the he should directly go to folder
> contain .axpx file, depends on roles
> eg:
> admin ~/admin/admin.aspx
> user1 ~/user/user.aspx
>
> pls help me
>
>  
>



-- 
Dean Fiala
Very Practical Software, Inc
Now with Blogging...
http://www.vpsw.com/blogbaby
Microsoft MVP


[Non-text portions of this message have been removed]

Reply via email to