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. textbox in gridview control

textbox in gridview control

Scheduled Pinned Locked Moved ASP.NET
help
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.
  • R Offline
    R Offline
    Raghvendra Kumar Roy
    wrote on last edited by
    #1

    I have a textbox in gridview control. on the time of edit i want maximum 256 character to be entered . if any one enter more than 256 character then it give a message. Is it Possible.Can anybody help me.

    Raghvendra Kumar Roy

    V L S 3 Replies Last reply
    0
    • R Raghvendra Kumar Roy

      I have a textbox in gridview control. on the time of edit i want maximum 256 character to be entered . if any one enter more than 256 character then it give a message. Is it Possible.Can anybody help me.

      Raghvendra Kumar Roy

      V Offline
      V Offline
      Viral Upadhyay
      wrote on last edited by
      #2

      use text box textchange event and write javascript function for checking the length of charactor

      Viral YahooID : just_viral My Site : www.theseoworld.info

      R 1 Reply Last reply
      0
      • V Viral Upadhyay

        use text box textchange event and write javascript function for checking the length of charactor

        Viral YahooID : just_viral My Site : www.theseoworld.info

        R Offline
        R Offline
        Raghvendra Kumar Roy
        wrote on last edited by
        #3

        can you tell me in detail

        Raghvendra Kumar Roy

        1 Reply Last reply
        0
        • R Raghvendra Kumar Roy

          I have a textbox in gridview control. on the time of edit i want maximum 256 character to be entered . if any one enter more than 256 character then it give a message. Is it Possible.Can anybody help me.

          Raghvendra Kumar Roy

          L Offline
          L Offline
          linpihong
          wrote on last edited by
          #4

          you can write the javascript function on textbox's onkeypress event.but i often set the MaxLength attribute of textbox to restrict entering character

          1 Reply Last reply
          0
          • R Raghvendra Kumar Roy

            I have a textbox in gridview control. on the time of edit i want maximum 256 character to be entered . if any one enter more than 256 character then it give a message. Is it Possible.Can anybody help me.

            Raghvendra Kumar Roy

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

            On the datagrid find the name of the textbox in tempplate control!! then txtObject.attributes.add("javascript function"); Remember that its a template control so only once you need to add the attribute!!! Hope itll help!!!

            I was born dumb!! :laugh:Programming made me laugh:laugh:!!! --sid--

            R 1 Reply Last reply
            0
            • S sidbaruah

              On the datagrid find the name of the textbox in tempplate control!! then txtObject.attributes.add("javascript function"); Remember that its a template control so only once you need to add the attribute!!! Hope itll help!!!

              I was born dumb!! :laugh:Programming made me laugh:laugh:!!! --sid--

              R Offline
              R Offline
              Raghvendra Kumar Roy
              wrote on last edited by
              #6

              it does not work?tell me in detail.

              Raghvendra Kumar Roy

              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