get text from button onclick c# code example
Example: c# sender text value
private void button2_Click(object sender, EventArgs e)
{
string s = (sender as Button).Text;
}
private void button2_Click(object sender, EventArgs e)
{
string s = (sender as Button).Text;
}