Register   Login
     
  Latest Posts  
RE: Ratings button appears to anonymous users
by WillJean on 11/20/2008 4:11 AM
Need a tutorial and simple sample to develop token-based module
by nmduc073 on 11/20/2008 3:53 AM
Start on Listing Screen
by jjjansen on 11/20/2008 3:34 AM
RE: Ratings button appears to anonymous users
by smcculloch on 11/20/2008 1:19 AM
RE: Ratings button appears to anonymous users
by WillJean on 11/20/2008 1:04 AM
RE: Is the Archive module an archive or an index?
by Betacam on 11/19/2008 10:34 PM
RE: One latest for a few categories
by aviavia on 11/19/2008 9:35 PM
RE: One latest for a few categories
by aviavia on 11/19/2008 9:30 PM
RE: Ventrian systems .... one men show
by smcculloch on 11/19/2008 9:26 PM
RE: One latest for a few categories
by smcculloch on 11/19/2008 9:26 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
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:12435


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
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
Registered Users
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