asp classic - The ASP page iframe contain a url is not working -
I have an asp program, for example abc.asp is the name of the name.
In abc.app I want to show other url pages like page headers.
I know that
& lt; Cell width can be used to show table width = "100%" range = "0" cellpadding = "0" cellspacing = "0" & gt; & Lt; TR & gt; & Lt; Td align = "center" valign = "top" & gt; & Lt; Iframe frameborder = "0" src = "http: //mywebsite/header.html" scrolling = "no" width = "100%" height = "120" & gt; & Lt; / Iframe & gt; & Lt; / TD & gt; & Lt; / TR & gt;
But this page is not showing content iframe link does not show content.
I try to use another method instead,
& lt; Table width = "100%" border = "0" cellpadding = "0" cell field = "0" & gt; & Lt; TR & gt; & Lt; Td align = "center" valign = "top" & gt; & Lt; Iframe frameborder = "0" src = "header.asp" scrolling = "no" width = "100%" height = "120" & gt; & Lt; / Iframe & gt; & Lt; / TD & gt; & Lt; / TR & gt;
header.asp Content:
& lt;% url url, strarr, xmlhttp, lineno url = "http: //www.mywebsite/header Html "set xmlhttp = CreateObject (" MSXML2.ServerXMLHTTP ") xmlhttp.open" GET ", url, false xmlhttp.setRequestHeader" content type "," application x-www-form-urlencoded "xmlhttp.send () response Xmlhttp. ResponseText set xmlhttp = nothing% & gt;
but this is not showing any content ....
If I type url http: //www.mywebsite/header.html < Click on / code>.
Comments
Post a Comment