本文整理汇总了VB.NET中System.Web.UI.WebControls.CreateUserErrorEventArgs类的典型用法代码示例。如果您正苦于以下问题:VB.NET CreateUserErrorEventArgs类的具体用法?VB.NET CreateUserErrorEventArgs怎么用?VB.NET CreateUserErrorEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CreateUserErrorEventArgs类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: OnCreateUserError
Partial Class CreateUserWizardErrorvb_aspx
Inherits System.Web.UI.Page
Protected Sub OnCreateUserError(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.CreateUserErrorEventArgs)
Select Case (e.CreateUserError)
Case MembershipCreateStatus.DuplicateUserName
Label1.Text = "Username already exists. Please enter a different user name."
Case MembershipCreateStatus.DuplicateEmail
Label1.Text = "A username for that email address already exists. Please enter a different email address."
Case MembershipCreateStatus.InvalidPassword
Label1.Text = "The password provided is invalid. Please enter a valid password value."
Case MembershipCreateStatus.InvalidEmail
Label1.Text = "The email address provided is invalid. Please check the value and try again."
Case MembershipCreateStatus.InvalidAnswer
Label1.Text = "The password retrieval answer provided is invalid. Please check the value and try again."
Case MembershipCreateStatus.InvalidQuestion
Label1.Text = "The password retrieval question provided is invalid. Please check the value and try again."
Case MembershipCreateStatus.InvalidUserName
Label1.Text = "The user name provided is invalid. Please check the value and try again."
Case MembershipCreateStatus.ProviderError
Label1.Text = "The authentication provider returned an error. Please verify your entry and try again. If the problem persists, please contact your system administrator."
Case MembershipCreateStatus.UserRejected
Label1.Text = "The user creation request has been canceled. Please verify your entry and try again. If the problem persists, please contact your system administrator."
Case Else
Label1.Text = "An unknown error occurred. Please verify your entry and try again. If the problem persists, please contact your system administrator."
End Select
End Sub
End Class