C # generate a static page based on the URL,
The Index. aspx file of HoverTreeWeb. HVTPanel in the HoverTree open-source project
Is the homepage of background management.
This function includes generating the homepage of the message board, displaying the user name, and exiting.
How to generate a page based on the URL:
Bool CreateHtmlFile (string url, string path) {// http://keleyi.com/a/bjae/3d10wfax.htmstring 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 the http://hovertree.codeplex.com.
Latest Development version open http://hovertree.codeplex.com/SourceControl/latest#readme.txt
Then, click Download to the right of Clone.
Benefits of generating static pages:
The biggest advantage of a static website is that the access speed is very fast and the search engine indexing is very friendly, saving the resources of the website server.
Http://www.cnblogs.com/sosoft/p/kaifajishu.html