아래 그림과 같이 :
<script src = "../ js/jquery-1.4.2.min.js"type = "text/javaScript"> </script> <script type = "text/javaScript"> $ (function () {$ ( "#a_doclick"). click () {$ ( "#<%= btntest.clientid>"))). <a id = "a_doclick"> 트리거 버튼 클릭 이벤트 </a> <asp : button runat = "server"id = "btntest"text = "test js trigger event"onclick = "btntest_click"/> 보호 된 void btntest_click (객체 송신기, eventargs e) {response.RediRect ( "// www.Vevb."); }가장 중요한 것은 <%= btntest.clientid%>입니다
위의 기사 "JS는 서버 컨트롤의 클릭 이벤트 (자세한 설명)를 트리거합니다. 제가 공유하는 모든 컨텐츠입니다. 참조를 제공 할 수 있기를 바랍니다. Wulin.com을 더 지원할 수 있기를 바랍니다.