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. General Programming
  3. C#
  4. how to get client id of textbox in gridview

how to get client id of textbox in gridview

Scheduled Pinned Locked Moved C#
csshelptutorialquestion
2 Posts 2 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.
  • S Offline
    S Offline
    ShaikhAffi
    wrote on last edited by
    #1

    Hi i have implemented a grid view in each there are certaing textboxes and there is a button called popup besides first textbox of the row so what i want when i click this button it shud get the client id of first textbox in the row how can i achieve this any help will be greatly appreciated

    M 1 Reply Last reply
    0
    • S ShaikhAffi

      Hi i have implemented a grid view in each there are certaing textboxes and there is a button called popup besides first textbox of the row so what i want when i click this button it shud get the client id of first textbox in the row how can i achieve this any help will be greatly appreciated

      M Offline
      M Offline
      Member 781610
      wrote on last edited by
      #2

      e.Row.Cells[Index].Controls[Index].ClientID.ToString() Remember the function should have "GridViewRowEventArgs e" as one of its arguments. onclick() event of the button pass the clientId as an argument to the function to execute.

      Long Live

      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