Simple Single Page c # generate static page source code,

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.