Search code examples
asp.netcssmozilla

Issue with disable button not looking disabled in Mozilla


We have asp.net button and we disable them based on user permission. Sample code is

btnSave.Enabled = false;

The button is disabled and hence non-clickable in IE. However in Mozilla the button looks enabled , though the user cannot click it.

Machine OS: Windows 7 IE version : 8.0 Mozilla version:Mozilla/5.0

Any workarounds or solution for this , or why is it behaving this way


Solution

  • you could use CSS to resolve this issue.

    button[disabled] {
     background-color: #ddd;
    /* Add CSS here for disable button look and feel*/
    }