Author: Acoustic1978 | Posted on: 10/25/2010 12:45:23 PM | Views : 386

Hello Forum,
 
I have been attempting to load my users and roles into a couple of listboxes but for some reason the listboxes are showing up empty.  What am I doing wrong?
 
<%@ Page Language="VB" MasterPageFile="~/PEPMasterPage.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" title="Untitled Page" %> <%@ Import Namespace="System.Web.Security" %> <%@ Import Namespace="System.Web.UI" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <script runat="server"> Dim rolesArray() As String Dim users As MembershipUserCollection Public Sub Page_Load() Response.Write(Roles.GetAllRoles()) Msg.Text = "" If Not IsPostBack Then ' ...

Go to the complete details ...