ASPX生成静态网页
Sub Page()Response.CharSet = "GB2312"
Me.EnableViewState = False
Dim path As String = Server.MapPath("b.htm")
Dim tw As System.IO.StreamWriter = New System.IO.StreamWriter(path,False,System.Text.Encoding.GetEncoding("GB2312"))
Dim wt As HtmlTextWriter = New HtmlTextWriter(tw)
Server.Execute("b1.aspx", wt)
wt.Close()
tw.Close()
Response.Redirect("b.htm")
Response.End()
End Sub
此代码可以把没有接受传值的页面成功转化了,我想了解要是有接受传值的页面要怎么做?
跪求!