Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. limit on characters to be entered in textbox in multiline mode

limit on characters to be entered in textbox in multiline mode

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yogita charhate
    wrote on last edited by
    #1

    how to place limit on the number of characters to be entered in the multiline mode textbox?For ex. if i have to limit numbers to 1000 characters. I have tried using Maxlength=1000 but it is not working. Can any one help me out?

    yog hui gfgh kgdgrt njjn hjgkn

    N B S 3 Replies Last reply
    0
    • Y yogita charhate

      how to place limit on the number of characters to be entered in the multiline mode textbox?For ex. if i have to limit numbers to 1000 characters. I have tried using Maxlength=1000 but it is not working. Can any one help me out?

      yog hui gfgh kgdgrt njjn hjgkn

      N Offline
      N Offline
      Nitin1981
      wrote on last edited by
      #2

      Yah It did not work that way.You may try to trim the text when retrieving it to 1000 characters.

      Don't Quit

      Y 1 Reply Last reply
      0
      • Y yogita charhate

        how to place limit on the number of characters to be entered in the multiline mode textbox?For ex. if i have to limit numbers to 1000 characters. I have tried using Maxlength=1000 but it is not working. Can any one help me out?

        yog hui gfgh kgdgrt njjn hjgkn

        B Offline
        B Offline
        Britney S Morales
        wrote on last edited by
        #3

        Write a Message for the clients, Example:"Only 1000 caracters for description" In code use Description.**Remove(1000)**; :)

        keep Learning and you never will be out of date...

        Y 1 Reply Last reply
        0
        • N Nitin1981

          Yah It did not work that way.You may try to trim the text when retrieving it to 1000 characters.

          Don't Quit

          Y Offline
          Y Offline
          yogita charhate
          wrote on last edited by
          #4

          Thank you for replying, i solved the problem using length property of textbox control. bye..

          yog hui gfgh kgdgrt njjn hjgkn

          1 Reply Last reply
          0
          • Y yogita charhate

            how to place limit on the number of characters to be entered in the multiline mode textbox?For ex. if i have to limit numbers to 1000 characters. I have tried using Maxlength=1000 but it is not working. Can any one help me out?

            yog hui gfgh kgdgrt njjn hjgkn

            S Offline
            S Offline
            sanjivji
            wrote on last edited by
            #5

            go for javascript code and make a fuction for that textbox which will count the number of character make a if else and genrate a alert msg this function fires on keyup or down events . fuction abc() { if(len(document.getelementbyid("").value) >1000) { alert("not allowe"); return; } } hope this will be ok try to mold this code with ur use :)

            1 Reply Last reply
            0
            • B Britney S Morales

              Write a Message for the clients, Example:"Only 1000 caracters for description" In code use Description.**Remove(1000)**; :)

              keep Learning and you never will be out of date...

              Y Offline
              Y Offline
              yogita charhate
              wrote on last edited by
              #6

              Thank you so much for proper guidance. I have successfully completed my fuctionality. bye.. :)

              yog hui gfgh kgdgrt njjn hjgkn

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups