When I set the text of the ErrorMessage Literal control, the text is not visible).
Note that ErrorMessage is found (not Nothing/NULL) and the Visible property is TRUE.
Any idea how to set this text? I'd rather not create a redundant Error label.
Protected Sub CreateUserWizard1_CreatingUser(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.LoginCancelEventArgs) Handles CreateUserWizard1.CreatingUser
'Checking for a custom error using the custom Customer object
Dim Customers As New Customers
If Customers.CustomerWebSiteExists(txtWebsite.Text) Then
e.Cancel = True
ErrorMessage.Text = "This customer website has already been registered."
Exit Sub
End If
End Sub
Public ReadOnly Property ErrorMessage As Literal
Get
Return CType(CreateUserWizard1.ActiveStep.Controls(0).FindControl("ErrorMessage"), Literal)
End Get