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. bubbling events for a DataGrid

bubbling events for a DataGrid

Scheduled Pinned Locked Moved ASP.NET
csharpcssdotnetvisual-studiodocker
3 Posts 1 Posters 1 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.
  • D Offline
    D Offline
    dove11
    wrote on last edited by
    #1

    I am trying to bypass the display of an overview page and go directly into the detail page by simulating the LinkButton click event. I'm having some trouble getting my code to work, mostly with interpreting what the parameters mean. I'm trying to create a CommandEventHandler which is supposed to handle the LinkButton click event, but when I look at it's value in Debug, it is set to Nothing. Here is my code: (this is the only LinkButton on this grid; the code for this takes place in the same class (_default)) I am using Microsoft Visual Studio .NET 2003 7.1.3088, Microsoft .NET Framework 1.1.4322 SP1 <%# DataBinder.Eval(Container.DataItem, "DESCRIPTION") %> [<%# DataBinder.Eval(Container.DataItem, "STATUS_NAME") %>](Subscription Status)

    View Details

    After the subscriber enters a user ID (INETNUM) and clicks the logon button, DisplaySubOverview Sub is executed, and if there is data, it is bound to the grid. If we have records to display

    D 1 Reply Last reply
    0
    • D dove11

      I am trying to bypass the display of an overview page and go directly into the detail page by simulating the LinkButton click event. I'm having some trouble getting my code to work, mostly with interpreting what the parameters mean. I'm trying to create a CommandEventHandler which is supposed to handle the LinkButton click event, but when I look at it's value in Debug, it is set to Nothing. Here is my code: (this is the only LinkButton on this grid; the code for this takes place in the same class (_default)) I am using Microsoft Visual Studio .NET 2003 7.1.3088, Microsoft .NET Framework 1.1.4322 SP1 <%# DataBinder.Eval(Container.DataItem, "DESCRIPTION") %> [<%# DataBinder.Eval(Container.DataItem, "STATUS_NAME") %>](Subscription Status)

      View Details

      After the subscriber enters a user ID (INETNUM) and clicks the logon button, DisplaySubOverview Sub is executed, and if there is data, it is bound to the grid. If we have records to display

      D Offline
      D Offline
      dove11
      wrote on last edited by
      #2

      For some reason the asp code didn't show properly. It shows in the edit but not in the preview. I'm not sure what I'm doing wrong. Any suggestions? why does it have removed= onitemcommand="ViewRecipientSubDetails"

      D 1 Reply Last reply
      0
      • D dove11

        For some reason the asp code didn't show properly. It shows in the edit but not in the preview. I'm not sure what I'm doing wrong. Any suggestions? why does it have removed= onitemcommand="ViewRecipientSubDetails"

        D Offline
        D Offline
        dove11
        wrote on last edited by
        #3

        Ok, I figured out how to display the asp code. <%# DataBinder.Eval(Container.DataItem, "DESCRIPTION") %> [<%# DataBinder.Eval(Container.DataItem, "STATUS_NAME") %>](Subscription Status)

        View Details

        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