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. Multiple Arguments In LinkButton

Multiple Arguments In LinkButton

Scheduled Pinned Locked Moved ASP.NET
question
6 Posts 4 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.
  • N Offline
    N Offline
    naveedmazhar
    wrote on last edited by
    #1

    Can we use multiple arguments for asp:LinkButton? If yes, then how? I want to pass more than two arguments to the OnCommand event of LinkButton.

    E M 2 Replies Last reply
    0
    • N naveedmazhar

      Can we use multiple arguments for asp:LinkButton? If yes, then how? I want to pass more than two arguments to the OnCommand event of LinkButton.

      E Offline
      E Offline
      enjoycrack
      wrote on last edited by
      #2

      hi there, u can write ur own class that inherits from asp:LinkButton, then override the OnCommand event << >>

      N 1 Reply Last reply
      0
      • E enjoycrack

        hi there, u can write ur own class that inherits from asp:LinkButton, then override the OnCommand event << >>

        N Offline
        N Offline
        naveedmazhar
        wrote on last edited by
        #3

        Any other simple solution?

        E 1 Reply Last reply
        0
        • N naveedmazhar

          Any other simple solution?

          E Offline
          E Offline
          enjoycrack
          wrote on last edited by
          #4

          u can write the class that inherits from EventArguments (sorry if this is not correct.) << >>

          1 Reply Last reply
          0
          • N naveedmazhar

            Can we use multiple arguments for asp:LinkButton? If yes, then how? I want to pass more than two arguments to the OnCommand event of LinkButton.

            M Offline
            M Offline
            MihirV
            wrote on last edited by
            #5

            hi, simple solution to your problem is to concat two values with a unique seperator and split it in event wherever you use... :) Confidence comes not from always being right, but from not fearing to be wrong..... Mihir..

            A 1 Reply Last reply
            0
            • M MihirV

              hi, simple solution to your problem is to concat two values with a unique seperator and split it in event wherever you use... :) Confidence comes not from always being right, but from not fearing to be wrong..... Mihir..

              A Offline
              A Offline
              Anonymous
              wrote on last edited by
              #6

              Is there any proper way to do this? Concatenation is not a proper way.

              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