<分区>
我正在设计一个简单的 ASPX
页面,它有两个 div's
。第一个 div 有静态内容。第二个内容我想是动态的。我希望用户在查询字符串中提供 URL,而我需要在第二个 div 中显示该 URL。到目前为止,我已经做到了这一点。
索引.aspx:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Frames Example</title>
<script type="text/javascript">
function LoadQueryPage() {
var str = <%= new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(Request.QueryString["pagename"]) %>
$("#siteloader")
.html('<object data=' + str + '/>');
}
</script>
</head>
<body>
<div style="min-height: inherit; height: 100px;">
Farhan S. Mukadam
</div>
<div>
<object type="text/html" data="http://validator.w3.org/" width="800px" height="600px" style="overflow:auto;border:5px ridge blue">
</object></div>
</body>
</html>
但这行不通。有人可以帮忙吗。