Click here to Skip to main content
15,914,820 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionInsert multiple records Pin
tanpanjang23-Apr-06 17:34
tanpanjang23-Apr-06 17:34 
QuestionDynamically change Flash movies......... Pin
daviiie23-Apr-06 13:13
daviiie23-Apr-06 13:13 
AnswerRe: Dynamically change Flash movies......... Pin
minhpc_bk23-Apr-06 20:34
minhpc_bk23-Apr-06 20:34 
Questionhi ans my question... Pin
muthukumaar23-Apr-06 6:03
muthukumaar23-Apr-06 6:03 
AnswerRe: hi ans my question... Pin
Roshan P Mohammed23-Apr-06 19:00
Roshan P Mohammed23-Apr-06 19:00 
AnswerRe: hi ans my question... Pin
minhpc_bk23-Apr-06 20:27
minhpc_bk23-Apr-06 20:27 
AnswerRe: hi ans my question... Pin
HimaBindu Vejella23-Apr-06 21:18
HimaBindu Vejella23-Apr-06 21:18 
QuestionUser Login Pin
Sean8923-Apr-06 5:40
Sean8923-Apr-06 5:40 
I haven't done much ASP.Net so I hope this is a small problem:

I have a page where the users can log in to the website. Their role depends on what page they get redirected to, so I am handeling the LoggedIn event of the Login control:

protected void Login_LoggedIn(object sender, EventArgs e)
{
    if (User.IsInRole("Admin") == true)
    {
        Server.Transfer("Admin/Default.aspx");
    }

    else if (User.IsInRole("SuperAdmin") == true)
    {
        Server.Transfer("SuperAdmin/Default.aspx");
    }

    else
    {
        Server.Transfer("User/Default.aspx");
    }
}


I have no idea if this is the best way to do someting like this... But my problem is that when, let's say the Admin, loggs in they will get the user page(supposed to be admin's) the first time and it says that they have not been authenticated. However, if i hit back and login again it says that they have been authenticated and it goes to the right page.

Anyone have any ideas why this is hapening?

Thanks in advance Poke tongue | ;-P

-- modified at 13:33 Sunday 23rd April, 2006
AnswerRe: User Login Pin
minhpc_bk23-Apr-06 20:19
minhpc_bk23-Apr-06 20:19 
GeneralRe: User Login Pin
Sean8924-Apr-06 15:50
Sean8924-Apr-06 15:50 
GeneralRe: User Login Pin
minhpc_bk24-Apr-06 16:04
minhpc_bk24-Apr-06 16:04 
AnswerRe: User Login Pin
sudharsong23-Apr-06 20:30
sudharsong23-Apr-06 20:30 
QuestionHow to avoid extra slashes and quotes??? Pin
sinanju23-Apr-06 5:13
sinanju23-Apr-06 5:13 
AnswerRe: How to avoid extra slashes and quotes??? Pin
Guffa23-Apr-06 5:33
Guffa23-Apr-06 5:33 
GeneralRe: How to avoid extra slashes and quotes??? Pin
sinanju23-Apr-06 5:52
sinanju23-Apr-06 5:52 
AnswerRe: How to avoid extra slashes and quotes??? Pin
Guffa25-Apr-06 4:02
Guffa25-Apr-06 4:02 
AnswerRe: How to avoid extra slashes and quotes??? Pin
NeverHeardOfMe23-Apr-06 13:58
NeverHeardOfMe23-Apr-06 13:58 
GeneralRe: How to avoid extra slashes and quotes??? Pin
sinanju23-Apr-06 17:08
sinanju23-Apr-06 17:08 
QuestionRequest-Response problem Pin
ndkit23-Apr-06 1:32
ndkit23-Apr-06 1:32 
AnswerRe: Request-Response problem Pin
Guffa23-Apr-06 1:38
Guffa23-Apr-06 1:38 
GeneralRe: Request-Response problem Pin
ndkit23-Apr-06 1:45
ndkit23-Apr-06 1:45 
GeneralRe: Request-Response problem Pin
CWIZO23-Apr-06 2:59
CWIZO23-Apr-06 2:59 
Questionerror in asp.net Pin
dadax_8523-Apr-06 1:32
dadax_8523-Apr-06 1:32 
AnswerRe: error in asp.net Pin
CWIZO23-Apr-06 3:00
CWIZO23-Apr-06 3:00 
GeneralRe: error in asp.net Pin
dadax_8523-Apr-06 12:24
dadax_8523-Apr-06 12:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.