Register   Login
     
  Latest Posts  
Default search parameter
by perezandres on 3/10/2010 2:50 AM
RE: send message to multiple users?
by marbab on 3/10/2010 2:43 AM
RE: Best DNN hosting provider
by robax on 3/10/2010 1:58 AM
RE: Multicolumn Article
by avelino on 3/10/2010 1:04 AM
RE: About Comment Notifications
by greenflash on 3/10/2010 12:28 AM
RE: New features for Real Estate template
by bennypg on 3/10/2010 12:18 AM
Permission Limit On Photos, prevent mass upload in PA
by subguru on 3/09/2010 10:53 PM
RE: Pay Per Ad. Are We Close?
by subguru on 3/09/2010 10:49 PM
RE: Add a broker?
by subguru on 3/09/2010 10:48 PM
RE: New features for Real Estate template
by subguru on 3/09/2010 10:45 PM
  Forums  
Subject: How to validate username?
Prev Next
You are not authorized to post a reply.

Author Messages
Nghi LeUser is Offline
Registered Users
Ventrian Addict
Ventrian Addict
Posts:69

6/04/2008 4:41 PM  

Hi Scott,

I'm trying to validate the username field through a regular expression. But the problem is, I can't find where the user name textbox is. Could you help me identify it?

Thanks.


Pijaja.Com - Innovative Site Builder
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17114


6/05/2008 8:00 AM  
Which form are you talking about? Is it a regex validator? You should be able to use the asp.net control ID

Scott McCulloch
Site Administrator
Nghi LeUser is Offline
Registered Users
Ventrian Addict
Ventrian Addict
Posts:69

6/05/2008 4:04 PM  

That's the problem Scott,

I'm using the default DNN registration. It'll be very easy if there exists a txtUsername field. But I can't find that textbox.

On the registration page, here's what produces the registration form:

[dnn:propertyeditorcontrol id="UserEditor"
    enableClientValidation = "true"
    sortmode="SortOrderAttribute"
    labelstyle-cssclass="SubHead"
    helpstyle-cssclass="Help"
    editcontrolstyle-cssclass="NormalTextBox"
    labelwidth="150px"
    editcontrolwidth="200px"
    width="350px"
    editmode="Edit"
    errorstyle-cssclass="NormalRed" ]

Any thought on this?

Thanks.


Pijaja.Com - Innovative Site Builder
Nghi LeUser is Offline
Registered Users
Ventrian Addict
Ventrian Addict
Posts:69

6/05/2008 11:54 PM  

Hah, this is funny.

When I browsed the Controls folder to modify the urlcontrol.ascx, I found out in that folder, DNN creates a user.ascx file which contains the registration form and all necessary fields to create a regular expression.

Problem solved! Sometimes luck is better than smartness after all.


Pijaja.Com - Innovative Site Builder
Imran AkramUser is Offline
Registered Users
Ventrian Newbie
Ventrian Newbie
Posts:3

5/18/2009 1:09 AM  

I'm also trying to do the same thing. I have modified the control you're mentioning but it's not effecting anything. I'm using DNN 4.9.

Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17114


5/18/2009 6:55 AM  
Glad you got it working nghi.

Scott McCulloch
Site Administrator
You are not authorized to post a reply.
Forums > General > DotNetNuke Questions > How to validate username?



ActiveForums 3.7