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
scampercat
NA
189
0
C# various values in app.config
Nov 6 2012 10:30 AM
In a C# 2008 application, I have code like what is listed below.
Thread.CurrentPrincipal.IsInRole(Environment.UserDomainName + "\\" + "Role")
I want to change the code so the "role" value is obtained from the app.config file instead of having a hard-coded value of "role".
Thus can you show me some code how I can obtain the "Role" value from the app.config file instead of using hard-coded values?
Reply
Answers (
2
)
How to use query parameters to access a datatable?
How to Bind the data column from the table into datagridviewcombobox column in c# windows for application.