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
Ian Davies
NA
28
1.6k
Access Rights Management
Apr 25 2020 5:39 PM
I am programing and application for work which requires a certain level of access rights to users. Once logged in I get the access level number 1-10 which is then put onto a splash screen in a hidden txt box.
on the closure of the splash screen i would like it to go to a menu for that access right.
This is the code I am using
private
void
tmr_splash_Tick(
object
sender, EventArgs e)
{
prb_splash.Increment(1);
if
(prb_splash.Value == 100)
tmr_splash.Stop();
if
(prb_splash.Value == 100)
this
.Hide();
if
(prb_splash.Value == 100 & (!txt_number.Text.Contains(
"10"
)))
{
frm_Artemis_admin aa =
new
frm_Artemis_admin();
aa.ShowDialog();
}
else
if
(prb_splash.Value == 100 & (!txt_number.Text.Contains(
"09"
)))
{
frm_Employees_edit aa =
new
frm_Employees_edit();
aa.ShowDialog();
}
The application runs but even though I have changed the access rights to 9 to test it its still going to the admin menu?
If anyone can help that would be great.
Many Thanks :)
Reply
Answers (
2
)
How to backspace and delete a string value using javascript
How to display Foreign kay data in asp.net core with SP