J
Joey
Hello,
In my C# asp.net 2.0 application, I have a webform with a button server
control on it. The webform, like most others in the site, subscribes to
a master page. I have determined that the button always renders with an
id of "ct100_ContentPlaceHolder1_btnContinue" in both the IE and
Firefox browsers.
I created the following javascript code segment to disable it when the
page loads. I have reasons for not wanting to do this with server side
code...
document.all['ct100_ContentPlaceHolder1_btnContinue'].disabled = true;
Now, when I view this in IE, the button is disabled. But when I view it
in Firefox, it's not. Also, there are no javascript errors returned by
either browser. Also, I have already updated my browserCaps section in
web.config, if that is relevant.
Why does the button remain enabled when viewing the page with Firefox?
In my C# asp.net 2.0 application, I have a webform with a button server
control on it. The webform, like most others in the site, subscribes to
a master page. I have determined that the button always renders with an
id of "ct100_ContentPlaceHolder1_btnContinue" in both the IE and
Firefox browsers.
I created the following javascript code segment to disable it when the
page loads. I have reasons for not wanting to do this with server side
code...
document.all['ct100_ContentPlaceHolder1_btnContinue'].disabled = true;
Now, when I view this in IE, the button is disabled. But when I view it
in Firefox, it's not. Also, there are no javascript errors returned by
either browser. Also, I have already updated my browserCaps section in
web.config, if that is relevant.
Why does the button remain enabled when viewing the page with Firefox?