How to generate pages based on URLs:
C # code
- BOOL Createhtmlfile (string url, string path)
- {
- Http://keleyi.com/a/bjae/3d10wfax.htm
- String m_content = Utils.gethtmlbyurl (Utils.getabsolutepath () + URL, Encoding.UTF8);
- if (m_content = = string. Empty)
- {
- return false;
- }
- Utils.createfile (m_content, Utils.getmappath (path), Encoding.UTF8);
- return true;
- }
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