This type of logic seems better suited for a client side script, but in any case, you can not use that logic on the backend.
The rasing of the click event method signifies that the button was clicked so your logic would be redundant inside of a click event handler as (even if there was a clicked property) it would always return true.
If, however, your intent is to use one event handler for multiple buttons you would do something like this to determine which button raised the event:
private void foo(object sender, System.EventArgs e)
{
LinkButton lb = (LinkButton)sender;
if(lb.ID == "linkbutton1")
{
count++;
}
else
{
count--;
}
}
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========