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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. problem with gridview onclick event

problem with gridview onclick event

Scheduled Pinned Locked Moved ASP.NET
helpquestioncsharp
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.
  • T Offline
    T Offline
    tronix01
    wrote on last edited by
    #1

    hello i'm looking for a way to call a c#-method by clicking on a row in a gridview. actually i try at first to select something , so i put this code in my gridview onRowCreated-method and it works. e.Row.Attributes["onclick"] = ClientScript.GetPostBackClientHyperlink(this.gvResultview, "Select$" + e.Row.RowIndex); but how can i call a c#-method by a click event ??? thanks a lot for help !

    V 1 Reply Last reply
    0
    • T tronix01

      hello i'm looking for a way to call a c#-method by clicking on a row in a gridview. actually i try at first to select something , so i put this code in my gridview onRowCreated-method and it works. e.Row.Attributes["onclick"] = ClientScript.GetPostBackClientHyperlink(this.gvResultview, "Select$" + e.Row.RowIndex); but how can i call a c#-method by a click event ??? thanks a lot for help !

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

      U can use Command Event of GridView....

      T 1 Reply Last reply
      0
      • V varshavmane

        U can use Command Event of GridView....

        T Offline
        T Offline
        tronix01
        wrote on last edited by
        #3

        thx for your answer... can you give me more details please ? thanks a lot best regards

        V 1 Reply Last reply
        0
        • T tronix01

          thx for your answer... can you give me more details please ? thanks a lot best regards

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

          What exactly u want to do please tell me in detail and also post a new thread.So that I can help u... Thanks...

          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