Last post Jun 07, 2017 09:55 AM by Cathy Zou
Jun 01, 2017 12:25 PM|mazhar khan india|LINK
IFRAME width and height Issue in live site but working localhost asp.net Web forms.
On click of asp.net hyperlink control and I am passing aspx page in IFRAME but height and width working in localhost and height and width not working on live site showing full page. I do not want full page and I need page as given height and width. Below
is Hyperlink control design.
<asp:HyperLink ID="HyperLink1" runat="server" Visible="false" class="thickbox" title="Add / Edit Photograph" href="UploadPhoto.aspx?Rnd=&TB_iframe=true&height=500&width=820"> Add Photograph</asp:HyperLink>
Localhost working IFRAME Height and Width.
Live site not working IFRAME Height and Width
I don't know wheather Its bootstrap design issue or what but I am using bootstrap design
Jun 02, 2017 09:54 AM|Cathy Zou|LINK
Hi mazhar khan india,
According to your description and image you provided,
It seems that you want to use bootstrap's modal popup to dispaly some contents.
It works well in localhost.However, after you publish your website, it doesn't work.
If that the case.
After i test, i suppose that it related to the missing of the bootstrap's reference.
So, i suggest that you could check the reference of bootstrap to avoid you use absolute path which related it couldn't be cited
Note: You could use online reference instead.
Working demo for your reference:
<asp:HyperLink ID="HyperLink1" runat="server" Visible="true" class="thickbox" title="Add / Edit Photograph" href="pdfpic.aspx?Rnd=&TB_iframe=true&height=500&width=500"> Add Photograph</asp:HyperLink>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<form id="form1" runat="server">
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">click</button>
<!-- (Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<iframe id="Myiframe" runat="server" name="Myframe" title="hhh"></iframe>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
string height = Request.QueryString["height"];
string width = Request.QueryString["width"];
Myiframe.Src = "/file/hello.pdf";
With a reference, output screenshot as below:
Without a reference, output screenshot as below:
Jun 02, 2017 10:12 AM|mazhar khan india|LINK
Dear Cathy Zou,
IFrame POPUP is working fine live also but in my friend system and I check both browser version also same but as you told add. My question why it is working in my friend system now just checked.. If i add boostrap script enough na.. or i have to use modal
pop then only it will work.
Jun 07, 2017 09:55 AM|Cathy Zou|LINK
According to your description, I suggest that you could use modal pop if it works well.
Besides, if you want to know why your project work well in your friend system but not work in your live site, could you give me more code about your project.
I would test it and find reason for you.