Click here to Skip to main content
16,021,125 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi in my application i have created one main master page for login and after getting login then based on the role it should redirect. i m maintaining manager,resource roles
so i created two folders for manager and resource and seperate master pagers for both roles and placed in the folders. now in login page code behind how to write redirect to the page which is in the folder.
Posted
Comments
Dhritirao's 12-Mar-13 7:16am    
i have wrote code like before making seperate folders for roles like this: response.redirect("manager.aspx"); else response.redirect ("resource.aspx"); now this is not working after the seperation of folders
ZurdoDev 12-Mar-13 7:18am    
Did you try Response.Redirect("~/ManagersFolder/manager.aspx") and Response.Redirect("~/OtherFolder/Resource.aspx")?
Dhritirao's 12-Mar-13 7:19am    
ya but it is not redirecting getting error that the directory mentioned is not correct

1 solution

Did you try Response.Redirect("Admin/adminhomepage.aspx")
 
Share this answer
 
Comments
Dhritirao's 13-Mar-13 3:25am    
ya i have tried its not working i think maintaining different master pages wont work

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