부트 스트랩 모델 내에 부분 뷰를로드하려고합니다. 부모 페이지에는 기존 양식이 있고 부분보기에는 다른 양식이 있습니다. 양식을 한 페이지에 넣기로 결정할 수 없습니다. 양식 내에 양식이 있기 때문입니다.부트 스트랩 - 모달 : 부분적보기가 모달 - 본문에 표시됩니다.
아래는 상위 페이지 내 체크 박스, 그것은 모델 대화 상자가 표시됩니다 확인하는 경우 :
<input type="checkbox" name="inputNewBornKMC" value="inputNewBornKMC" id="inputNewBornKMCCheckbox"> New Born
아래는 상위 페이지에서 모달 대화입니다 : 자바 스크립트에서
<div Class="modal fade" id="inputNewBornKMC" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close modal-close-btn" data-dismiss="modal">×</button>
<h4 class="modal-title">Search Newborn's Mother</h4>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
@*<button type="button" class="btn btn-default" id="AddGP">Save changes</button>*@
</div>
</div> <!-- Modal content-->
</div>
</div> <!-- Modal -->
을, 모달 대화 상자를로드하려면 다음 코드를 입력하십시오.
$('#inputNewBornKMCCheckbox').on('change', function (e) {
var _this = $(this);
// if checked
if (_this.is(':checked')) {
$('#inputNewBornKMC').modal({
keyboard: false,
remote: '/controller/AddPartialRegistration'
}).show();
$('#inputNewBornKMCCheckbox').on('click', '.modal-link', function (e) {
e.preventDefault();
$(this).attr('data-target', '#inputNewBornKMC');
$(this).attr('data-toggle', 'modal');
});
}
_PartialRegistration 페이지에서
public ActionResult AddPartialRegistration()
{
return PartialView("_PartialRegistration");
}
: N 컨트롤러 부분보기를 표시합니다 나는 사람들이 부분적인 전망을 적용하는 여러 가지 방법을 시도했지만 아무도 일하지 않은
<div class="modal-body">
<form class="form-horizontal" id="frmSearchMother" role="form" >
Mother's MRN
<input type="text" class="form-control input-sm" id="popupMotherMRN" name="popupMotherMRN" />
IC/ID No
<input type="text" class="form-control input-sm" id="popupICNo" name="popupICNo" />
Mother's Name
<input type="text" class="form-control input-sm" id="popupMotherName" name="popupMotherName" />
<button type="button" class="btn btn-default" id="SearchMother" >Search</button>
</form>
<br />
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="LoadMotherDetailsTable">
<thead>
<tr>
<th>No.</th>
<th>Mother's MRN</th>
<th>Mother's IC No</th>
<th>Mother's Name</th>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
. 부분 뷰를 모달 대화 상자 내부의 모달 바디에 삽입하는 방법은 확실하지 않습니다. 이 대화 상자는 확인란을 선택할 때 표시 될 수 있지만 모달 바디에서 부분 뷰를로드하는 방법은 확실하지 않습니다.
도움을 주시면 감사하겠습니다.
감사 어쨌든
감사합니다, Narendran P를 도우려고? 그것은 중요한가? – Nurul
시각 장애인이 스크린 리더를 사용하고 내 페이지에서 무슨 일이 일어나는지 알고 싶다면 중요합니다. – JDro04