C # generates static pages based on URLs

Source: Internet
Author: User

How to generate pages based on URLs:

C # code  
  1. BOOL Createhtmlfile (string url, string path)
  2. {
  3. Http://keleyi.com/a/bjae/3d10wfax.htm
  4. String m_content = Utils.gethtmlbyurl (Utils.getabsolutepath () + URL, Encoding.UTF8);
  5. if (m_content = = string. Empty)
  6. {
  7. return false;
  8. }
  9. Utils.createfile (m_content, Utils.getmappath (path), Encoding.UTF8);
  10. return true;
  11. }

You can download the source code to http://hovertree.codeplex.com in detail.

The latest development version, please open http://hovertree.codeplex.com/SourceControl/latest#readme.txt
Then click on Clone to the right of the download download.

Benefits of generating static pages:
The biggest advantage of static website is that the access rate is very fast, the search engine ingest support is very friendly, save the resources of the website server.

C # generates static pages based on URLs

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.