Ajax Control Toolkit 라이브러리의 Modal Popup Extender를 사용할 수 있다고 가정합니다. 예를 들어 http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx을 참조하십시오.
클라이언트 측 지원이있는 웹 서버 제어 (Extender)와 관련된 Ajax 제어 툴킷 라이브러리의 모든 제어 도구 (이 유형의 제어 도구에 대한 다른 이름은 Ajax 제어).
당신이 모달 팝업이 사용되는 페이지의 렌더링 된 소스를 검토한다면 다음과 같은 JS를 사용하여 다음과 같은 클라이언트 측 구성 요소가 생성되는 것을 발견 할 수 것, 그것은 그래서
Sys.Application.add_init(function() {
$create(Sys.Extended.UI.ModalPopupBehavior, {"BackgroundCssClass":"modalBackground","DropShadow":true,"PopupControlID":"ctl00_SampleContent_programmaticPopup","PopupDragHandleControlID":"ctl00_SampleContent_programmaticPopupDragHandle","dynamicServicePath":"/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx","id":"programmaticModalPopupBehavior","repositionMode":2}, null, null, $get("ctl00_SampleContent_hiddenTargetControlForModalPopup"));
});
을 의미한다 클라이언트 쪽에서 동적으로 모달 팝업을 만들 수 있습니다. 또한 다음 JS를 사용하여 특정 모달 팝업 동작 클라이언트 메서드를 호출 할 수 있습니다.
$find("programmaticModalPopupBehavior").show();
클라이언트 측에서도이 메서드를 사용하는 방법도 있습니다. – skhurams