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. javascript for GridView

javascript for GridView

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptvisual-studiohelptutorial
4 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.
  • P Offline
    P Offline
    pinna_hari
    wrote on last edited by
    #1

    Hello, I am working with visual studio 2005. I have one gridview with template field textboxes. for every row i have 3 textboxes, when i enter value in second textbox, i need to show the multiplication of two textbox value in third textbox. i write code using onblur event, but it is working for single row. Please suggest me how find the event of textbox using javascript.(I mean how to find in which textbox(which row) i entered the value) Please help me... Thanks in advance..

    Pinna

    V 1 Reply Last reply
    0
    • P pinna_hari

      Hello, I am working with visual studio 2005. I have one gridview with template field textboxes. for every row i have 3 textboxes, when i enter value in second textbox, i need to show the multiplication of two textbox value in third textbox. i write code using onblur event, but it is working for single row. Please suggest me how find the event of textbox using javascript.(I mean how to find in which textbox(which row) i entered the value) Please help me... Thanks in advance..

      Pinna

      V Offline
      V Offline
      vaseeem
      wrote on last edited by
      #2

      Use datagrid's RowDataBound event to write the javascript. Your JavaScript will be bounded to all rows.

      Errors are like Mini Skirts, shorter they get, more revealing they become.

      P 1 Reply Last reply
      0
      • V vaseeem

        Use datagrid's RowDataBound event to write the javascript. Your JavaScript will be bounded to all rows.

        Errors are like Mini Skirts, shorter they get, more revealing they become.

        P Offline
        P Offline
        pinna_hari
        wrote on last edited by
        #3

        How we can call javascript funtion in row databound event of gridview. Looking forward for your reply... Thanks in Advance...

        Pinna

        V 1 Reply Last reply
        0
        • P pinna_hari

          How we can call javascript funtion in row databound event of gridview. Looking forward for your reply... Thanks in Advance...

          Pinna

          V Offline
          V Offline
          vaseeem
          wrote on last edited by
          #4

          e.Row.Attributes.Add(event,javascript) ex: e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='blue'");

          Errors are like Mini Skirts, shorter they get, more revealing they become.

          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