2013-06-07 2 views
0

안녕하세요, 저는 gridview에서 행을 삭제하기 전에 confim 메시지를 구현하는 방법을 알고 싶지만 서버에 다시 게시하지 않고 jQuery를 사용해야한다는 것을 알고 있습니다. (나는 체크 박스를 선택합니다. 및 행의 gridview에서 행의 nonoe가 sleceted있어 경우이 내 영문 페이지입니다 내가) 을 경고 메시지를 표시하려면, 삭제할 수있는 삭제 버튼을 누릅니다마스터 페이지가있는 ASP 페이지의 jQuery

http://pastebin.com/WVTXQx1s

이는 C# 코드 :

http://pastebin.com/cwAhb49F

+0

후 관련 렌더링 된 HTML하시기 바랍니다 http://jqueryui.com/dialog/#modal-confirmation

귀하의 코드는 다음과 같이 보일 수 있습니다 . – tymeJV

답변

0

당신은 여기에서 jQuery를의 대화 기능을 사용할 수 있습니다 : 당신의 몸에서 그런

$('#deletebuttonid').Click((function() { 
$("#dialog-confirm").dialog({ 
    resizable: false, 
    height:140, 
    modal: true, 
    buttons: { 
    "Delete all items": function() { 
     // Call your asp.net delete function here 
    }, 
    Cancel: function() { 
     $(this).dialog("close"); 
    } 
    } 
}); 
}); 
); 

: 여기

<div id="dialog-confirm" title="Empty the recycle bin?"> 
<p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;">  </span>These items will be permanently deleted and cannot be recovered. Are you sure?</p> 
</div> 
관련 문제