<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body scrolling="no">
<form id="form1" runat="server">
<div>
<iframe frameborder="0" border="0" style="height:11599px;width:100%;margin:0 auto" name="index" src="http://www.sina.com">
</iframe>
</div>
</form>
</body>
</html>
<head runat="server">
<title>Untitled Page</title>
</head>
<body scrolling="no">
<form id="form1" runat="server">
<div>
<iframe frameborder="0" border="0" style="height:11599px;width:100%;margin:0 auto" name="index" src="http://www.sina.com">
</iframe>
</div>
</form>
</body>
</html>
{
string returnStr = "";
HttpWebRequest all_codeRequest = (HttpWebRequest)WebRequest.Create(RemoteUrl); //建立一个WebRequest对象链接到远程服务器
WebResponse all_codeResponse = all_codeRequest.GetResponse();
StreamReader the_Reader = new StreamReader(all_codeResponse.GetResponseStream(),System.Text.Encoding.Default);
returnStr = the_Reader.ReadToEnd();
the_Reader.Close();
return returnStr;
}