0

我的页面上有 2 个按钮。第一个是 html 按钮,下一个是 asp 按钮。现在我想在页面加载时隐藏 asp 按钮,并想在 html 按钮的 onclick 上取消隐藏。谁能帮我这个 ??

4

1 回答 1

0

.aspx html/javascript 代码

<head>
function UnhideButtons(buttonName){
if(buttonName == 'aspButton'){
document.getElementbyId(htmlButton).visiblity = "visible";
}
}
</head>

<body>
<asp:Button id="aspButton" style="visibility:hidden" Text="ASP Button"/>
<Button id="htmlButton" text="HTML Button" onClick=UnhideButtons("aspButton")
</body>
于 2012-04-14T14:56:05.487 回答