2011-02-10 5 views

답변

4

당신은 Panel

<asp:Panel id="pnl" runat="server" DefaultButton="imagebutton1"> 

// Some controls and code // 

<asp:ImageButton id="imagebutton1" runat="server" ImageUrl="images/imge.gif" > 
</asp:ImageButton> 

// Some controls and code // 

</asp:Panel> 
+0

@ 혹독한 : 답장을 보내 주셔서 감사합니다. 웹 페이지의 같은 패널에 다른 모든 컨트롤을 배치해야합니다. 패널에 imagebutton을 삽입했기 때문에 입력 키를 눌러도 작동하지 않습니다. –

+0

@Mathew 너 할 수있어? 나머지 코드는 무엇입니까? MasterPages를 사용하고 있습니까? – jcolebrand

+0

@Mathew 클릭하면 패널에 컨트롤을 포함시켜야합니다. 이미지 버튼을 기본 버튼으로 지정하십시오. –

1

를 사용하는 form 태그에서이 하나의 시도 것을 수행 할 수 있습니다

<form id="form1" runat="server" defaultfocus="imagebutton1"> 
관련 문제