It depends.
A button's click event has this signature:
protected void btnClick(object sender, EventArgs e) and that can't be changed. Normally if you want to access some sort of data from the UI you would do something like:
protected void btnClick(object sender, EventArgs e)
{
string foo = <mycontrol>.Text;
}
This, of course, assumes the control has a Text property. It would go a long well to explain a little more in detail what you are trying to do.
-Doug
================================================== =========
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
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========