在ASP .NET中显示来自子控件的父控件模态 [英] Display parent controls modal from child control in ASP .NET
问题描述
嗨朋友们,
我有2个用户控件,一个控件放在另一个控件中。在父控件中,我添加了一个bootstrap模式。在子控件中我添加了一个iframe,这个iframe将显示一个aspx页面。我需要在iframe中显示的aspx页面中显示父控件模式。如有任何想法,请帮助我。
提前致谢....
我尝试过:
功能popEditContent(){
<% - $('#<%= lblError.ClientID%>')。text(''); - %>
$('#popContent')。modal({
background:'static',
show:true
});
}
函数popClose(){
$('。modal-backdrop')。remove();
$('body')。removeClass(modal-open)。css('padding','0');
$('#popContent')。modal.close() ;
}
并从iframe中显示的aspx页面调用此函数..但弹出窗口不显示
('#<%= lblError.ClientID%>')。text(''); - %>
('#popContent')。modal({
背景:'静态',
显示:true
});
}
函数popClose(){
('。modal-backdrop') .remove();
Hi friends,
I have 2 user controls , One control is placed inside another control. In parent control I have added a bootstrap modal. in child control i have added an iframe and this iframe will show an aspx page. I need to display the parent controls modal from the aspx page shown inside the iframe . If any one have idea please help me.
Thanks in advance....
What I have tried:
function popEditContent() {
<%-- $('#<%=lblError.ClientID%>').text('');--%>
$('#popContent').modal({
backdrop: 'static',
show: true
});
}
function popClose() {
$('.modal-backdrop').remove();
$('body').removeClass("modal-open").css('padding', '0');
$('#popContent').modal.close();
}
and called this function from the aspx page shown in iframe.. But popup not displays解决方案('#<%=lblError.ClientID%>').text('');--%>
('#popContent').modal({
backdrop: 'static',
show: true
});
}
function popClose() {
('.modal-backdrop').remove();
这篇关于在ASP .NET中显示来自子控件的父控件模态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!