Posted on: 2/26/2011 1:25:23 PM | Views : 278

Hi Guys,
I have a registration form which is working perfectly well, I need to enhance it slightly from where it is. As it is users are able to register for an account wether the email has been previously used/allocated in the user db.
A client side call to the IsEmailAvailable function works great, just not working correctly server side. Here is the code.
My function:
<System.Web.Services.WebMethod()> _ Public Shared Function IsEmailAvailable(ByVal email As String) As Boolean Dim emailAddress As String = Membership.GetUserNameByEmail(email) Return (emailAddress Is Nothing) End Function And my if statement:
If IsEmailAvailable(False) Then modalPopupEmail.Show() e.Cancel = True Else End If So my question is, how can I pass the end value of the IsEmailAvailable function to my if statement correctly.
Thanks ...

Go to the complete details ...