[ASP.NET] 엔터키를 누를 경우 Default 버튼 설정

 

Panel로 영역을 설정하고 DefaultButton을 지정해 주면됩니다.

 

<asp:Panel ID="Panel1" runat="server" DefaultButton="Btn1" >
          <asp:textbox id="TextBox1" runat="server" />

          <asp:ImageButton id="Btn1" runat="server" ImageUrl="images/btn1.gif"  />

          <asp:ImageButton id="Btn2" runat="server" ImageUrl="images/btn2.gif"   />

</asp:Panel>

 

Panel1내에 위치한 TextBox1에서 엔터키를 누를경우 항상 Btn1  클릭 처리됩니다.

by poco | 2007/06/29 01:53 | 느린보 정보 | 트랙백(2) | 덧글(0)

트랙백 주소 : http://poco.egloos.com/tb/355113
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]
Tracked from Ephedra. at 2007/10/26 22:13

제목 : Twinlab metabolift with ephe..
Medicated ephedra block. Georgia ephedra lawyers. Twinlab metabolift with ephedra. Ephedra....more

Tracked from Adderall sid.. at 2007/10/27 05:58

제목 : Adderall.
What is adderall....more

:         :

:

비공개 덧글

◀ 이전 페이지다음 페이지 ▶