Greeting all
I had build an asp.net webform project
I greated project roles by ASP.Net configuration: AS below:
-Manger roles (containe one user)
-Brunch Role(has 3 users, beacuse I created three branches, each branch it got one mangers.
-Editor Role .
-Kitchen role.
you can see below my hand diagram, which explain what i need.
Here you can see a two created database
First (Asp.net database)
Second (my project creted database)
If example my compny it got three branches , each manger will login to comany site by using (login.aspx)page
this page redirerct user depends on his roles like code below:
- {
- Login chocLogin = (Login)sender;
-
- if (System.Web.Security.Roles.IsUserInRole(chocLogin.UserName, "Manager"))
- {
- Response.Redirect("~/admin/Default.aspx");
- }
- if (System.Web.Security.Roles.IsUserInRole(chocLogin.UserName, "Branch"))
- {
- Response.Redirect("~/branch/Default.aspx");
- }
- }
This point here so hard for me, taked long time in thinking to resolve it.
how to show message (welcome"username" depends on branch code).
Thanks if you catch my point.