Simple Single Page c # generate static page source code,
Protected void BtGroup_ServerClick (object sender, EventArgs e)
{
// Industrial Group Homepage
String tempGroupData = GetHttpData ("http://www.goudiannao.com/Group/index.aspx ");
Using (StreamWriter sw = new StreamWriter (this. Request. PhysicalApplicationPath + "Group \ Index.html", false, System. Text. Encoding. GetEncoding ("UTF-8 ")))
{
Sw. Write (tempGroupData );
Sw. Flush ();
}
}
Public string GetHttpData (string sUrl)
{
String sRslt = null;
WebResponse oWebRps = null;
WebRequest oWebRqst = WebRequest. Create (sUrl );
OWebRqst. Timeout = 50000;
Try
{
OWebRps = oWebRqst. GetResponse ();
}
Finally
{
If (oWebRps! = Null)
{
StreamReader oStreamRd = new StreamReader (oWebRps. GetResponseStream (), System. Text. Encoding. GetEncoding ("UTF-8 "));
SRslt = oStreamRd. ReadToEnd ();
OStreamRd. Close ();
OWebRps. Close ();
}
}
Return sRslt;
}
The simpler the source code of a single-page website, the better,
Static, simple, and no longer simple. Please Ctrl + C:
<Html>
<Title> single-page website Source Code </title>
<Body> This is a single-page website Source Code </body>
</Html>
A simple single-page order website?
For the order system of a single-page website, I am looking for an invincible copywriting software V1.0, which was provided by the author of this software. There are background management functions, customer management, order management, delivery management, all can be achieved, you can go and have a look.