Can somebody help me with this simple problem:
I have an asp.net button and I want to make "if" statement that depends
of button label ( or caption text), i tried like this:
private void Button0_Click(object sender, System.EventArgs e)
{
if (Button0.text == "one")
{
// do something.....
}
else
{
// do something else....
}
}
....but I got an error "object reference not set to an instance of an
object"
Can someone help me a little with this ?
Thanks
Thanks