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. how to pass a textbox ID which is in a grid view to a java script

how to pass a textbox ID which is in a grid view to a java script

Scheduled Pinned Locked Moved ASP.NET
javacsstoolstutorial
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.
  • A Offline
    A Offline
    Arindam Datta
    wrote on last edited by
    #1

    i am developing a web based application where i use function getdata(obj) { var txt = document.getElementById(obj); txt.value='0'; } i want to pass textbox ID which is in a grid view to the java script. how it can be possible Thanks & Regards Sourav Ghosh

    A 1 Reply Last reply
    0
    • A Arindam Datta

      i am developing a web based application where i use function getdata(obj) { var txt = document.getElementById(obj); txt.value='0'; } i want to pass textbox ID which is in a grid view to the java script. how it can be possible Thanks & Regards Sourav Ghosh

      A Offline
      A Offline
      Anudeep Jaiswal
      wrote on last edited by
      #2

      generally text box is used to edit item in edit mode.. so find that text box in row editing now attach txtboxid.attribute.add("onkeypress","return getdate(this);"); i think this will help u....

      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