You had a semicolon (;) after the if-statement.
Remove that one and it should work.
protected void enablebutton()
{
if (item_name.text == "" || model.text == "" || company.text == "" || quantity.text == "")
{
Button1.enable = false;
}
else
{
Button1.enable = true;
}