我想保存網頁(包括圖片)。在ASP.NET中保存網頁(包括圖片)
其實我用下面的代碼保存了網頁。
Dim LocalFilePath As String = String.Format("D:\Jaison\Download\{0}.html",
Me.TextBox1.Text)
Dim objWebClient As New System.Net.WebClient
objWebClient.DownloadFile(
String.Format("http://localhost:52241/ppp.aspx?hr_psno={0}",
Me.TextBox1.Text), LocalFilePath)
它保存了網頁。
但是圖像沒有顯示在保存的網頁中。
因此,請幫我進一步編碼。
試圖重新加載您的網頁 – Kasnady 2013-04-04 07:35:58