Hello Scott;
thanks for reply. as i mentioned in the earlier posts, i am the adminstrator who create users or accounts not them. I createm them them assign them roles (Members). When i open the asp.net configuration i can see the users are added, but "Without assigning them access to roles (i assign them members role". when i assign them a role through asp.net configuration it works fine. I think the problem here is that the code in the script is not fired.
i s it possible to test the code if it is running or not?
This is the script code:
<%
@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="CreateAccount.aspx.vb" Inherits="CreateAccount" title="Untitled Page" %>
<
script runat="server">
Public Sub ActivateStep(ByVal sender As Object, ByVal e As System.EventArgs)
ListBox1.DataSource = Roles.GetAllRoles()
ListBox1.DataBind()
End Sub
Public Sub DeactivateStep(ByVal sender As Object, ByVal e As System.EventArgs)
Roles.AddUserToRole(User.Identity.Name, ListBox1.SelectedValue)
End Sub
</
script>
Regards
Al-0bed