Hi ???
Try this?
Ken
Microsoft MVP [ASP.NET]
<%@ page language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Protected Sub Page_Load _
(ByVal sender As Object, ByVal e As System.EventArgs)
If Not IsPostBack Then
ShowRoleData()
End If
End Sub
Protected Sub ShowRoleData()
Dim Provider As SqlProfileProvider
Dim pageIndex As Integer = 0
Dim pageSize As Integer = 100
Provider = Profile.Providers _
("AspNetSqlProfileProvider")
GridView1.DataSource = Roles.GetUsersInRole _
("members")
GridView1.DataBind()
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Role Info</title>
<style type="text/css">
body, span, label { font-size:large}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:gridview id="GridView1" runat="server">
</asp:gridview>
</div>
</form>
</body>
</html>
"VB Programmer" <do**@emailme.com> wrote in message
news:Ox**************@tk2msftngp13.phx.gbl...
ASP.NET 2.0.....
How do I get all users (in aspnet_Users) that are not in the "member" role
(aspnet_Roles)?
Thanks.