CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 2/5/2008 6:14:20 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 54 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
ams015
Asp.Net User
Retrieving User Role and storing it2/5/2008 6:14:20 PM

0/0

Is there a way that i can retrieve the user's role and store it into a string and possibly a label?

DotNetAdvisor
Asp.Net User
Re: Retrieving User Role and storing it2/5/2008 6:52:03 PM

0/0

Well it's possible for a user to be in multiple roles but yes you can retrieve this information.  Use the Role class.  It has several methods for that.


Rob Mills

www.dotnetadvisor.com
farazsk11
Asp.Net User
Re: Retrieving User Role and storing it2/5/2008 7:04:31 PM

0/0

Hi,

If you are using membership Role then you can do like this

string[] roles = Roles.GetRolesForUser("Username");


Faraz Shah Khan
MCP
My Blog

Please ?Mark as Answer? on the post that helps you. This can be beneficial to other community members reading the thread.
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional ASP.NET 2.0 Security, Membership, and Role Management Authors: Stefan Schackow, Pages: 611, Published: 2006
Visual Basic 2005: A Developer's Notebook Authors: Matthew MacDonald, Pages: 243, Published: 2005
Professional Palm OS Programming Authors: Lonnon R. Foster, Glenn Bachmann, Pages: 954, Published: 2005
SAP NetWeave Portal Technology: The Complete Reference Authors: Rabi Jay, Pages: 735, Published: 2008
Palm OS Programming Bible: Programming Bible Authors: Lonnon R. Foster, Pages: 904, Published: 2002
Professional ASP.NET 2.0 Server Control and Component Development Authors: Shahram Khosravi, Pages: 1186, Published: 2006
Public Key Infrastructure: First European PKI Workshop: Research and Applications, EuroPKI 2004, Samos Island, Greece, June 25-26, 2004 : Proceedings Authors: Sokratis K. Katsikas, Stefanos Gritzalis, Javier Lopez, Pages: 380, Published: 2004
Findings and Current Opinion in Cognitive Neuroscience Authors: Larry R. Squire, Stephen Michael Kosslyn, Pages: 381, Published: 1998

Web:
[#LEP-3518] Retrieve user and role information by screenname ... Retrieve user and role information by screenname ... Storing the Liferay userId in LDAP is at most inconvenient (if not impossible) because we are using ...
Re: Using Zend_Auth to retrieve a user's role to u: msg#00012 Re: Using Zend_Auth to retrieve a user's role to use in Zend_Acl: msg#00012 ... you want about the user and store it in the session at authentication time. ...
12 User and Role API Framework User and role API features to create, modify, or retrieve users and roles in the ... Role : A Role instance represents a role in the identity store. ...
System and method for retrieving documents responsive to a given ... ... retrieving documents responsive to a given user's role and scenario - US ... Method and apparatus for storing and selectively retrieving product data ...
System and method for retrieving documents responsive to a given ... A method for storing and selectively retrieving documents comprising: ...... Based on the sophistication of the system, the user role and scenario may be ...
Roles Class (System.Web.Security) You can use the WindowsTokenRoleProvider class to retrieve role information ... If a user's browser accepts cookies, you can store role information for that ...
AuthExt a small Auth extension to set permission on user belonging ... Jul 29, 2008 ... When using Auth native, the Aro path for a User having a role, will be the User Aro and the Role Aro. Using the following syntax to retrieve ...
Information Seeking, Retrieving, Reading, and Storing Behaviour of ... By studying the user behaviour in traditional libraries and how they seek, retrieve, read and store selected materials, one can begin to understand how ...
Development of Embedded System for storing and retrieving XML data storing XML documents in tables. To retrieve XML documents, several query ... first role of the XQuery processor is to translate an user query in the XQuery ...
Catalyst::Authentication::Store::Tangram - A storage class for ... This class is usually Catalyst::Authentication::Store::Tangram::User, ... The name of the field to retrieve the name of the role from on the Tangram class ...




Search This Site:










100,000's of files in directory

dnn on apache

conent page scroll bar

skin/container: how to add first, next, previous, last links?

change email-adress

autopostback happen when i click cancel button

unusual dnn things to look out for

news articles for dotnetnuke 2.0.4

"windows service" project for daily task?

creating and saving dynamic table??????? pls help!!

is it possible to generate .doc from an aspx page?

can´t delete in website

allowing automated signon from other websites ?

customizing calender control

help with calendar

can't log out.

querystrings to aspx files

saving multiple files on the client side using asp.net request...

failed to create designer

are there some problems if i use static variable store value instead of hiddenfield in asp.net 2.0?

using stored procedure

capturing output...

why does bubbling events use virtual functions?

edit and update datatable values

base 64 encoding and setting it as the autherisation header

i have no "publish web site" item under the menu build

loged in user listed in form

active directory support

control update problem

localizing text from attributes.

 
All Times Are GMT