DIV에 gridview를 넣고 div를 숨 깁니다. 그런 다음 JQuery를 사용하여 DIV 표시, 선택된 값 캡처 및 레이블 설정을 처리 할 수 있습니다. 이것은 모두 클라이언트 측에서 수행 할 수 있으므로 서버에 대한 이동을 피할 수 있습니다. 다음은 간단한 샘플입니다. 나는 단순히 텍스트 상자를 보여 주며 입력 된 값은 레이블에 업데이트됩니다. 물론 스타일과 HTML을 추가하여 div 모양을 양식과 더 비슷하게 만들 수 있습니다. 그러나 그것은 당신을 시작해야합니다. 또한 jquery 참조를 포함해야합니다.
<script type="text/javascript">
$(document).ready(function() {
$('.ok').click(function (e) {
//Cancel the link behavior
e.preventDefault();
$('#lbl').text($('#input').val());
$('#dialog').hide();
});
$('#btnShow').click(function (e) {
//Cancel the link behavior
e.preventDefault();
//Set the popup window to center
$('#dialog').css('top', $(window).height()/2 - $('#dialog').height()/2);
$('#dialog').css('left', $(window).width()/2 - $('#dialog').width()/2);
$('#dialog').show();
});
});
</script>
<label id="lbl">Old Value</label>
<input type="button" id="btnShow" value="Get Value" />
<div id="dialog" style="display:none; width:440px; height:200px; position:absolute; ">
<input type="text" id="input" />
<input type="button" value="OK" class="ok" style="width:70px"/>
</div>
위대한 사람들은 Telerik을 가지고 있다면 무엇을 사용할 수 있습니까? – user710502
@ user710502 Window 컨트롤을 사용하십시오. 데모는 다음과 같습니다. http://demos.telerik.com/aspnet-ajax/window/examples/default/defaultcs.aspx – Icarus
감사합니다. – user710502