I'm trying to display a Button called track with the text: "Start". But when I click the button I want to change the text to "Stop". Well, that's not much of a problem, but I want to change the text back in the "Start" when I press the button again. And over and over.
I already tried with an if-statement and using null, but that doesn't work. Also, the options when pressing alt+enter do not seem to work.
protected void change(object sender, EventArgs ea)
{
if (track.Text == "Track")
{
track.Text = "Track";
}
else
{
track.Text = "Stop";
}
}