2012-04-14 5 views
0

내 페이지에는 2 개의 버튼이 있습니다. 첫 번째 버튼은 html 버튼이고 다음 버튼은 asp 버튼입니다. 이제는 페이지로드시 asp 버튼을 숨기고 html 버튼의 onclick에서도 동일하게 숨기려고합니다. 아무도이 날 도와 드릴까요 ??HTML 버튼의 onpick asp 버튼을 클릭하십시오

답변

0

에서 .aspx HTML/자바 스크립트 코드

<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> 
관련 문제