Register   Login
     
  Latest Posts  
RE: ENH: NA becomes the Article Manager and LA is the display module
by SteveJ on 10/08/2008 12:07 AM
Enh: Collect IP Address with comments
by SteveJ on 10/07/2008 11:49 PM
RE: Listing Item Template
by goblanks on 10/07/2008 11:48 PM
RE: Listing Item Template
by goblanks on 10/07/2008 11:46 PM
RE: NA 00.07.13 - Editor Text Boxes Disappear for Summary/Excerpt - need it back
by smcculloch on 10/07/2008 11:27 PM
RE: News Articles Tokens
by goblanks on 10/07/2008 11:26 PM
RE: NA 00.07.13 Excerpt & RSS
by smcculloch on 10/07/2008 11:26 PM
RE: Suggestion: Individual articles only viewable by select roles.
by smcculloch on 10/07/2008 11:23 PM
RE: NA 00.07.13 - BUG Archive Category count draft
by smcculloch on 10/07/2008 11:21 PM
RE: ENH Page Title, Page URL and Categrory Breadcrumb
by Declic Video on 10/07/2008 11:13 PM
  Forums  
Subject: How to validate username?
Prev Next
You are not authorized to post a reply.

Author Messages
Nghi LeUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:68

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
Sirius - Free DNN Skin
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:11956


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
Gold Membership
Nuke Addict
Nuke Addict
Posts:68

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
Sirius - Free DNN Skin
Nghi LeUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:68

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
Sirius - Free DNN Skin
You are not authorized to post a reply.
Forums > General > DotNetNuke Questions > How to validate username?



ActiveForums 3.7