使用JavaScript在ContentPlaceHolder中显示可见母版页按钮? [英] Visible master page button in ContentPlaceHolder by using JavaScript?

查看:78
本文介绍了使用JavaScript在ContentPlaceHolder中显示可见母版页按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在母版页中我有5个按钮,contenPlaceHoder有3个按钮



当我点击contenPlaceHoder按钮然后contenPlaceHoder所有按钮启用false



如下脚本函数



In master page i have 5 buttons and contenPlaceHoder have 3 buttons

When i click contenPlaceHoder button then contenPlaceHoder all button enable false

as follow java Script Function

  function disable(control) {
    var btnGenerateInvoice =  document.getElementById('<%=btnGenerateInvoice.ClientID%>');

    btnGenerateInvoice.disabled = "false";
}







但未禁用母版页按钮




but master page button not disabled

推荐答案





你的问题在这里解决了



http://www.w3schools.com/jsref/prop_pushbutton_disabled.asp [ ^ ]



记住: - false 和假都是不同的事情。第一个是字符串类型,第二个是布尔类型。
Hi,

your problem is solved here

http://www.w3schools.com/jsref/prop_pushbutton_disabled.asp[^]

remember :- "false" and false both are different things. 1st one is string type and 2nd one is Boolean type.


这篇关于使用JavaScript在ContentPlaceHolder中显示可见母版页按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆