How to find the Textbox text length. . . .

Discussion in 'ASP .Net' started by Raghuram, May 7, 2005.

  1. Raghuram

    Raghuram Guest

    i have a textbox with the max 5000 char and if the user reaches to the max
    he should be alerted with an msg displaying "reaced to max".
    i tried to do this by TextBox1_TextChanged but i was failed.
    please can any one help me
    Raghuram
    Raghuram, May 7, 2005
    #1
    1. Advertising

  2. You need to do this in JavaScript. Try using some JS events like
    onkeypress.

    "Raghuram" <> wrote in message
    news:...
    > i have a textbox with the max 5000 char and if the user reaches to the max
    > he should be alerted with an msg displaying "reaced to max".
    > i tried to do this by TextBox1_TextChanged but i was failed.
    > please can any one help me
    > Raghuram
    >
    >
    Peter Rilling, May 7, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mitchua
    Replies:
    5
    Views:
    2,734
    Eric J. Roode
    Jul 17, 2003
  2. =?Utf-8?B?SG96aQ==?=
    Replies:
    1
    Views:
    6,954
    Ken Cox [Microsoft MVP]
    Jun 2, 2004
  3. Sam
    Replies:
    3
    Views:
    14,093
    Karl Seguin
    Feb 17, 2005
  4. Dan Manes
    Replies:
    1
    Views:
    732
    David Browne
    Apr 23, 2006
  5. AlecL
    Replies:
    3
    Views:
    1,204
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Apr 11, 2007
Loading...

Share This Page