C # generate a static page based on the URL,

Source: Internet
Author: User
Tags website server

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

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.