Author: celinelb | Posted on: 4/7/2010 4:22:50 PM | Views : 341

Dear Forum,
I have been following the tutorial http://www.asp.net/learn/security/tutorial-09-vb.aspxn

I am getting "System.ArgumentException: The parameter 'roleName' must not be empty.
Parameter name: roleName" when I try to create a new role. However the record is created in the database.
I have tried with and without capital letters but this didn't change a thing...


The page's code:


<%@ Page Language="VB" MasterPageFile="~/Site.master" Title="Untitled Page" debug="true"%> <script runat="server"> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) End Sub Protected Sub CreateRoleButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles CreateRoleButton.Click Dim newrolename As String = RoleName.Text.Trim() ...

Go to the complete details ...