Click here to Skip to main content
15,881,690 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
here if the manager logged in then he redirects to manageuser page. if he is not manager he should redirect to anther page in that page based on the email id he entered his details should be viewed.

C#
if (ds.Tables[0].Rows.Count > 0)
        {
            if (ds.Tables[0].Rows[0]["role"].ToString() == ResourceManagementConstants.str_manager)
            {
                Response.Redirect("ManageUsers.aspx");
            }
            else
            {
                Response.Redirect("FullProfile.aspx?id=55");

            }



here by default i used 55 id number. with out using like this how to modify the code. how to pass the id value with out using this default id no.
Posted
Updated 14-Feb-13 22:41pm
v2
Comments
Nandakishore G N 15-Feb-13 5:04am    
are you maintaining extra column for the role..if s use stored procedure to popout the role after successful login. and then redirect to respective pages
Dhritirao's 15-Feb-13 5:40am    
i got it its working

Response.Redirect("FullProfile.aspx?id="+ds.Tables[0].Rows[0]["id"].ToString())

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