Click here to Skip to main content
15,904,416 members
Please Sign up or sign in to vote.
4.20/5 (2 votes)
See more:
I have one button , his onclick event is responce.redirect("To some page ") ;

no what i want to do is , i have role based system in my app , if roleis manager then i want to redirect to given click event , but if role name some other then i want to change my event in code behind , How can i do that ??
Posted
Comments
VishwaKL 28-Aug-13 6:18am    
Use Button command, using Oncommand event, there u can check the rules and redirect the user depends on the role.
Anand Kumar Prajapati 28-Aug-13 6:45am    
Why do you want to change event? You can do your stuff on Click event also
If(manager)
...Do some thing
else if(other role)
... do some different
muneebalikiyani 29-Aug-13 3:29am    
Anand kumar , This is actually a good "solution" to this question; I would have upvoted it if you had posted it as an answer.

1 solution

you can use Page_command Event
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900