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. find control on Gridview using javascript

find control on Gridview using javascript

Scheduled Pinned Locked Moved ASP.NET
javascripttutorial
6 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.
  • V Offline
    V Offline
    VijayVishwakarma
    wrote on last edited by
    #1

    Hi, can anyone suggest me how to find a control in gridview and pass value on the control using javascript. I m a newbie with javascript. Regards

    Vijay V. Yash Softech

    K A 2 Replies Last reply
    0
    • V VijayVishwakarma

      Hi, can anyone suggest me how to find a control in gridview and pass value on the control using javascript. I m a newbie with javascript. Regards

      Vijay V. Yash Softech

      K Offline
      K Offline
      Kannan Ar
      wrote on last edited by
      #2

      You can’t find server side control in client side. While rendering page, those are converted to HTML markups. To access this HTML tags, use document.getElementById function.

      A 1 Reply Last reply
      0
      • K Kannan Ar

        You can’t find server side control in client side. While rendering page, those are converted to HTML markups. To access this HTML tags, use document.getElementById function.

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Kannan Pala wrote:

        document.getElementById function.

        It will give only the client id of that document, not any control inside of a particual control.

        cheers, Abhijit

        K 1 Reply Last reply
        0
        • V VijayVishwakarma

          Hi, can anyone suggest me how to find a control in gridview and pass value on the control using javascript. I m a newbie with javascript. Regards

          Vijay V. Yash Softech

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          Here a Good Article From CP Client-Side Validation for the CheckBoxes Inside a GridView[^] This will solve your purpose.

          cheers, Abhijit

          1 Reply Last reply
          0
          • A Abhijit Jana

            Kannan Pala wrote:

            document.getElementById function.

            It will give only the client id of that document, not any control inside of a particual control.

            cheers, Abhijit

            K Offline
            K Offline
            Kannan Ar
            wrote on last edited by
            #5

            You are wrong. This function will return a reference to an HTML control.

            A 1 Reply Last reply
            0
            • K Kannan Ar

              You are wrong. This function will return a reference to an HTML control.

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #6

              Kannan Pala wrote:

              This function will return a reference to an HTML control.

              Will it return the reference of control inside the Gridview?

              cheers, Abhijit

              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