password","domain");
CredentialCache putCache = new CredentialCache();
putCache.Add(new Uri("http://www.webjx.com/"), "Basic", myCred);
makeReq.Credentials = myCache;
WebResponse objResponse;
objResponse = objRequest.GetResponse();
using (StreamReader sr = new StreamReader(objResponse.GetResponseStream()) )
{
result = sr.ReadToEnd();
// Close and clean up the StreamReader
sr.Close();
}
return result;
}
</script>
<html>
<body>
<b>下面的内容框可以显示你要浏览的网页
<a href="http://www.webjx.com">www.webjx.com</a></b>
<hr/>
<asp:literal id="myPage" runat="server"/>
</body>
</html>
CredentialCache putCache = new CredentialCache();
putCache.Add(new Uri("http://www.webjx.com/"), "Basic", myCred);
makeReq.Credentials = myCache;
WebResponse objResponse;
objResponse = objRequest.GetResponse();
using (StreamReader sr = new StreamReader(objResponse.GetResponseStream()) )
{
result = sr.ReadToEnd();
// Close and clean up the StreamReader
sr.Close();
}
return result;
}
</script>
<html>
<body>
<b>下面的内容框可以显示你要浏览的网页
<a href="http://www.webjx.com">www.webjx.com</a></b>
<hr/>
<asp:literal id="myPage" runat="server"/>
</body>
</html>
| 对此文章发表了评论 |

