how to limit user input into the multiline text box????

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cw

    how to limit user input into the multiline text box????

    Hi all,

    Is anyone have an idea that limit message length input by user into
    textbox. I'hv tried the maxlength property by setting it to 150, but it
    seems like not working..,

    regards


  • James J. Foster

    #2
    Re: how to limit user input into the multiline text box????

    Provided your textbox's TextMode is set to SingleLine or Password,
    (MultiLine causes the control to be rendered as a textarea tag, where the
    maxlength is ignored), the maxlength should limit the number of characters
    allowed.

    --
    James J. Foster, DotNetCoders
    格安SIMデビューしたいけど、自分の使っている機種をそのまま使えるの?それとも話題の格安スマホやSIMフリースマホを購入すべき?初めてのことで、購入するにもどこでどのように買えばいいか分らない!といった疑問をまるっとお答えします!



    "cw" <cw_yeh@hotmail .com> wrote in message
    news:ugsefjJPDH A.3836@tk2msftn gp13.phx.gbl...[color=blue]
    > Hi all,
    >
    > Is anyone have an idea that limit message length input by user into
    > textbox. I'hv tried the maxlength property by setting it to 150, but it
    > seems like not working..,
    >
    > regards
    >
    >[/color]


    Comment

    Working...