adding textbox attribute...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • libish
    New Member
    • Oct 2008
    • 42

    adding textbox attribute...

    can any one help me in adding type attribute to a textbox object???

    here what i need is to add an attribute ie. alphanumeric,nu meric,password etc....
    ie a text box after adding this attribute should allow only alphanumeric values to be inserted... if the attribute added is alphanumeric..
  • markmcgookin
    Recognized Expert Contributor
    • Dec 2006
    • 648

    #2
    By changing the "PasswordCh ar" property of your textbox you can add a character you want to be displayed if this is a password box (It will assume it is for a password if you add something to this)

    To the best of my knowledge you can't set alpha or alpha/num restrictions on the text box (I may be wrong)

    You could manyally catch the ontextchanged event and check the text that has just been input and display an error if it's not what you wanted.

    Comment

    Working...