For a webapplication if i want to gice access controls like
admin,users how can i give security like rolebased?
Answer Posted / nezam
In Web Application, we have Roles with that roles we can assign access the to users. we can create n no of roles.
Roles Can be such as
-Guest users
-premium users
-non premium users
-admin user
so when the users logins .the login control checks what kind of role he is and the page is redirect to him.
If he is admin then he is taken admin master page.
like tat its works.
For creating Roles in my point of view we have to use the login controls which is avaiable in tool box. with that login controls oly we can assign roles, check roles and many others things can be done.
| Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
How do you use viewstate?
Hello, Using Visual Studio 2005 (VB) I am working to create a Web Site implementing the following: Within a gridView I have placed a dropdownlist control with a DataSourceID="SDSLkupList". SDSLkupList is a sqlDataSource used to store a lookup list for dropdownlist translation from ID to text. SDSLkupList contains the translation text and other fields related to the dropdown selection ID. (Thought it would be efficient to get everything at the same time.) I would like to provide the user the ability to select from the dropdownlist and, based on the selection, use labels to list related columns stored on the SDSLkupList in separate gridView columns. I have read that SqlDataSources are not meant to be used for individual controls. Since SDSLkupList contains all related information, is there a way to do a find using the dropdownlist selectedValue? (I was not able to discover one.) Otherwise, what should I use? It would need to set the labels on the gridView DataRowBound event as well as the SelectedIndexChanged events. Has anyone done this? Any help would be appreciated. Thanks in Advance. Neal
Explain how asp.net page works?
What is the difference between a cookie and a pixel?
Explain swagger components.
Where is asp.net session stored?
What is odata in web api?
What are sessions used for?
Define resource files.
How asynchronous call can be implemented using delegates?
Explain page output caching?
What is the difference between system.stringbuilder and system.string
What is the meaning of TestApi?
Name the tools or API for developing or testing web api?
Is it true that a Web service must be written in .NET or not?