I have a button in a formview that I want to disable at runtime but I cant get it to work.
In my pageload I have:
Button btnReturn = (Button)fwTest.FindControl("btnReturn");
if (MyObject.Id == 1)
btnReturn.Enabled = false;
I can debug and see that i passes the line that set it to disabled but it is not disabled
in the browser....