There is always no good idea about RSS. I accidentally found a good article today. Article
Write your own. Net RSS feed in C #
Http://www.computorcompanion.com/LPMArticle.asp? Id = 194
Add the httphandler of *. RSS to Web. config and use the configuration file to configure each channel. I tried it and thought it was good and generic. The experiment encountered a small problem. IE7 always reported XML file format errors. CopySource codeSave and use IE7. When I was confused, I suddenly remembered whether it was a coding problem? Because of myProgramConfigure it to gb2312 in Web. config.
< Globalization requestencoding = " Gb2312 " Responseencoding = " Gb2312 " />
Modified the class of the article and forced utf8 for output to solve the problem.
Context. response. contenttype = " Text/XML " ;
Context. response. contentencoding = System. Text. encoding. utf8;
Context. response. Write ( " <? XML version = \ " 1.0 \ " ?> " );
Context. response. Write (cachedchan );
Related ArticlesCode.