TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Aktham Mahmoud
NA
720
37.7k
About that scenario (Many branches,many mangers)
Apr 22 2020 4:48 PM
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;
//Int32 Id;
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.
Reply
Answers (
5
)
ASP.NET app not able to connect to Timberline Data ODBC
Multiple buttons on webpage acting as submit