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