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. ASP.Net Textbox

ASP.Net Textbox

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestion
3 Posts 3 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.
  • R Offline
    R Offline
    rajanandal
    wrote on last edited by
    #1

    is it possible to limit the no of line in asp.net textbox???????? i have the problem on this........ :) rajan

    V R 2 Replies Last reply
    0
    • R rajanandal

      is it possible to limit the no of line in asp.net textbox???????? i have the problem on this........ :) rajan

      V Offline
      V Offline
      Venkatesh Mookkan
      wrote on last edited by
      #2

      rajanandal wrote:

      is it possible to limit the no of line in asp.net textbox????????

      I afraid, you can't. But you can limit no. of letters using MaxLength property of the TextBox control. And you can use JavaScript to do the job on clientside.

      [Venkatesh Mookkan] My: Website | Yahoo Group | Blog Spot

      1 Reply Last reply
      0
      • R rajanandal

        is it possible to limit the no of line in asp.net textbox???????? i have the problem on this........ :) rajan

        R Offline
        R Offline
        rashidpervaiz08
        wrote on last edited by
        #3

        Testbox size can be limited when its mode is "singleline" while if the the mode is multi line you use RegularExpressionValidator> i have mentioned the the re for the textarea. <asp:RegularExpressionValidator ID="revMaxDescription" runat="server" ControlToValidate="txtDescription" ErrorMessage="Test cannot be greater than 100 characters." ValidationExpression="(.|\n){0,100}"/>

        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