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. CommandName without using Command Event ??

CommandName without using Command Event ??

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

    Is that possible to use CommandName and CommandArgument of a button inside the code-behind without using CommandEvent ? On my page, i have 3 - 4 buttons and at postback time i need to know which button is clicked but i dont' want to have the Command event handler inside my code. So how can i know which button (and/or which commandname) cause the postback ? Thank you

    R 1 Reply Last reply
    0
    • T Tee

      Is that possible to use CommandName and CommandArgument of a button inside the code-behind without using CommandEvent ? On my page, i have 3 - 4 buttons and at postback time i need to know which button is clicked but i dont' want to have the Command event handler inside my code. So how can i know which button (and/or which commandname) cause the postback ? Thank you

      R Offline
      R Offline
      Rhys Gravell
      wrote on last edited by
      #2

      Any particular reason you don't want to actually code this properly, (as I'm not sure that what you're trying to do is possible or entirely sensible)? Could you cope with using one event handler for all buttons? Rhys A bus station is where a bus stops. A train station is where a train stops. On my desk I have a workstation... Vampireware /n/, a project, capable of sucking the lifeblood out of anyone unfortunate enough to be assigned to it, which never actually sees the light of day, but nonetheless refuses to die.

      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