That does not solve my problem as i explained earlier.
I need to do validation before any processing in my "click routine" .
The problem is that Validation depends upon which button was clicked.
I hope you understands the problem.
Check out "MattC" reply , the problem can be solved by delegates
as he suggested....
Many Thanks
"John Saunders" <jo**************@notcoldmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
"bredal Jensen" <br******@mimosa.com> wrote in message
news:OS**************@TK2MSFTNGP11.phx.gbl...
Hello,
I have a web form with three buttons among other things.
I need to know wich one of my buttons was pressed .
The problem is that i want my page to be valid before any of the
buttons "click" routines can do some processing , meaning that they have
the "Causevalidation" property set to true.
The validation routines depends upon which of the buttons was pressed.
How can i identify them in my validation routine?
Why not simply check Page.IsValid in the click routines before doing the
processing?
--
John Saunders
johnwsaundersiii at hotmail