iframe未在弹出窗口中显示 [英] Iframe is not displaying in popup
问题描述
我的源页面代码如下
< asp:Panel ID =pnlgrdrunat =serverBackColor =BisqueWidth =200px高度=400px>
< asp:HiddenField ID =HFpkgidrunat =server/>
< iframe id =frmsrc = Package_Grid.aspx pkgid = LT;%= HFpkgid.Value%> 中visible =false>
< / iframe>
aspx页码如下
protected void rpt_sample(object source,RepeaterCommandEventArgs e)
{
if(e.CommandName ==Sample)
{
ViewState [pkgid] = Session [Pkg_gridview]。ToString()。Trim();
MPE.Show();
}
但是当我在弹出窗口中运行时,会显示。
但是当我在sql server中存储过程并且执行输出即将来临时
exec [OH_PKG_DATE_COMBINATION]'PKG000005'>
Sno course sdate edate Desc
1 MFA 27 aug 15 31 Aug 15座位24
1 PSCRB 2 aug 15 6月15日座位28
1 AFF 8 aug 15 13 Aug 15席位30
但是上面的输出没有显示
有什么问题。
请帮帮我。
My source page code as follows
<asp:Panel ID="pnlgrd" runat="server" BackColor ="Bisque" Width="200px" Height="400px">
<asp:HiddenField ID="HFpkgid" runat="server" />
<iframe id="frm" src="Package_Grid.aspx?pkgid=<%=HFpkgid.Value%>" visible="false">
</iframe>
aspx page code as follows
protected void rpt_sample(object source, RepeaterCommandEventArgs e)
{
if (e.CommandName == "Sample")
{
ViewState["pkgid"] = Session["Pkg_gridview"].ToString().Trim();
MPE.Show();
}
But when i run in popup noting is to be displayed.
But when i runt he store procedure in sql server and execute output is coming
exec [OH_PKG_DATE_COMBINATION] 'PKG000005'
Sno course sdate edate Desc
1 MFA 27 aug 15 31 Aug 15 seats 24
1 PSCRB 2 aug 15 6 Aug 15 seats 28
1 AFF 8 aug 15 13 Aug 15 seats 30
But in frame above output is not showing
what is the problem.
please help me.
推荐答案
请不要两次发布同一个问题。您没有设置HFpkgid。
Please don't post the same question twice. You are not setting HFpkgid.
这篇关于iframe未在弹出窗口中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!