Register   Login
     
  Latest Posts  
RE: File Expiration Date
by jerops on 12/02/2008 3:49 PM
RE: Display Name
by smcculloch on 12/02/2008 3:38 PM
RE: New Module - File Search
by smcculloch on 12/02/2008 3:37 PM
RE: Set default value
by smcculloch on 12/02/2008 3:36 PM
RE: File Expiration Date
by smcculloch on 12/02/2008 3:35 PM
RE: News Article css
by smcculloch on 12/02/2008 3:34 PM
RE: Integration with UserProfile StoryFeed
by smcculloch on 12/02/2008 3:32 PM
RE: Multi currency
by Astaroth on 12/02/2008 3:32 PM
RE: SUMMARY tag
by smcculloch on 12/02/2008 3:31 PM
RE: JQuery Error in IE6
by smcculloch on 12/02/2008 3:31 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:12560


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