473,395 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

'Roles' does not contain a definition for 'RoleExists'

What does this mean?
'Roles' does not contain a definition for 'RoleExists'

I'm doing this:
using System.Web.Security;
Roles.DeleteRole(txtRolename.Text.Trim());

I don't see what's wrong.

Hope someone can help,
Arjen
Nov 17 '05 #1
4 2376
Please post Whidbey issues to one of the foruns at
http://forums.microsoft.com.
This class is not part of the current release.

Willy.

"Arjen" <bo*****@hotmail.com> wrote in message
news:de**********@news3.zwoll1.ov.home.nl...
What does this mean?
'Roles' does not contain a definition for 'RoleExists'

I'm doing this:
using System.Web.Security;
Roles.DeleteRole(txtRolename.Text.Trim());

I don't see what's wrong.

Hope someone can help,
Arjen

Nov 17 '05 #2
Correct, over 2 or 3 months it is part of the last release (if they don't
change anything).

The samples are here:
http://beta.asp.net/QUICKSTART/util/...lete_Roles.src

I do the same thing... but get this error. ;-(

Arjen

"Willy Denoyette [MVP]" <wi*************@telenet.be> schreef in bericht
news:OO****************@TK2MSFTNGP09.phx.gbl...
Please post Whidbey issues to one of the foruns at
http://forums.microsoft.com.
This class is not part of the current release.

Willy.

"Arjen" <bo*****@hotmail.com> wrote in message
news:de**********@news3.zwoll1.ov.home.nl...
What does this mean?
'Roles' does not contain a definition for 'RoleExists'

I'm doing this:
using System.Web.Security;
Roles.DeleteRole(txtRolename.Text.Trim());

I don't see what's wrong.

Hope someone can help,
Arjen


Nov 17 '05 #3
Now it works with the complete name...
System.Web.Security.Roles.DeleteRole(txtRolename.T ext.Trim());

Strange...

Arjen

"Arjen" <bo*****@hotmail.com> schreef in bericht
news:de**********@news3.zwoll1.ov.home.nl...
What does this mean?
'Roles' does not contain a definition for 'RoleExists'

I'm doing this:
using System.Web.Security;
Roles.DeleteRole(txtRolename.Text.Trim());

I don't see what's wrong.

Hope someone can help,
Arjen

Nov 17 '05 #4
Hi Arjen,

I think is does contain the definition for the same. I developed an
application where in I checked if it role already existed I prompted the same
else created a new role.

if (!Roles.RoleExists(txtBoxRole.Text))
{
// Create Role
Roles.CreateRole(txtBoxRole.Text);
// Bind the list box again after creating the role
LstBoxDBind ();
//Displaying the message for role creation
lblMessage.Visible = true;
lblMessage.Text = "Role : '" + Server.HtmlEncode(txtBoxRole.Text.ToString())
+ "' created.";
txtBoxRole.Text = "";
}

I hope my understanding is correct of your issue

regards,
anubhav
"Arjen" wrote:
What does this mean?
'Roles' does not contain a definition for 'RoleExists'

I'm doing this:
using System.Web.Security;
Roles.DeleteRole(txtRolename.Text.Trim());

I don't see what's wrong.

Hope someone can help,
Arjen

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: DB_2 | last post by:
Hello, Does DB2 have the concept of roles as in Oracle? I did not see any relevant information on this topic in the documentation that came with the database. As used in Oracle, a role is...
3
by: ohayo | last post by:
In a windows form app (which acts as a front end to my quickfix application), I get the following error on compiling Application does not contain a definition for 'Run'. What does this mean,...
3
by: Justin Dutoit | last post by:
Hey. I have the error CS0117 'BusinessLayer' does not contain a definition for 'MySoapHeader'. Below is a link to the asmx source, and the code which calls the web service. MS seems to do the same...
10
by: Bob | last post by:
This a bit of a second post on same subject, my apologies. IsinRole function only works with built-in roles. If I create a new group on my domain controller then add an existing user to that...
9
by: Mike Hofer | last post by:
BACKGROUND: We've designed a Website for a client that will be deployed across multiple physical locations. The site will be hosted from a corporate NOC, and administered by the IT group there. ...
130
by: Daniel Manes | last post by:
I'm baffled. I have a column in a SQL Server Express database called "Longitude," which is a float. When I view the table in a DataGridView, some of the numbers, which only have two decimal places...
4
by: AC | last post by:
Hi there. My asp.net 2.0 development website uses roles to control access to sections of my site, configured using the asp.net configuration tool, which is great. Except that isn't available once...
2
by: trullock | last post by:
Hi, I need to control access to certain pages in my site, via the use of forms based authentication and roles. Now i've got the pages i want protected by a login form and thats all working...
2
by: Nathan Sokalski | last post by:
When I call System.Web.Security.Roles.GetRolesForUser() it returns no results (an array of length 0) even though I have roles associated with the currently logged in user. I am able to get the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.