本文介绍了IFrame的替代方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

网址来自数据库,我必须显示该网址,现在我正在使用IFrame,还有其他替代方案吗...请帮忙我出去

Ex: -

searchHolder是我的< asp:PlaceHolder id =searchHolderrunat =server/>

String strurlNew =http://www.xyz.com;

HtmlGenericControl searchFrame = new HtmlGenericControl(iframe);

searchFrame.ID =searchFrame+ Convert。 ToString(i);

searchFrame.Attributes.Add(height,strHeight);

searchFrame.Attributes.Add(width,strWidth);

searchFrame.Attributes.Add(src,strurlNew);

searchHolder.Controls.Add(searchFrame);



谢谢提前,

Shubhranshu

Hello,
URL are coming from DB, and I have to show that page of that URL, right now i am using IFrame for that, is there any other alternative for this.. please help me out.
Ex:-
searchHolder is my <asp:PlaceHolder id="searchHolder" runat="server" />
String strurlNew="http://www.xyz.com";
HtmlGenericControl searchFrame = new HtmlGenericControl("iframe");
searchFrame.ID = "searchFrame" + Convert.ToString(i);
searchFrame.Attributes.Add("height", strHeight);
searchFrame.Attributes.Add("width", strWidth);
searchFrame.Attributes.Add("src", strurlNew);
searchHolder.Controls.Add(searchFrame);

Thanks is advance,
Shubhranshu

推荐答案

function httpGet(theUrl)
{
    var xmlHttp = null;

    xmlHttp = new XMLHttpRequest();
    xmlHttp.open( "GET", theUrl, false );
    xmlHttp.send( null );
    return xmlHttp.responseText;
}





干杯,

Edo



Cheers,
Edo


这篇关于IFrame的替代方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-27 01:28