RSS原理和实现(中) 2007-10-18 11:16 4.2RSS阅读器的实现 原理是把写有rss内容的xml文件读出来,然后再按结构写成html的格式 < %@ Page Language ="C#" AutoEventWireup ="true" CodeFile ="Default.aspx.cs" Inherits ="_Default" % > <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > < html xmlns ="http://www.w3.org/1999/xhtml" > < head id ="Head1" runat ="server" > < title > 简易RSS阅读器 </ title > < script language ="javascript" type ="text/javascript" > // <! CDATA[function ButtonExit_onclick() {}// ]] > </ script > </ head > < body > < form id ="form1" runat ="server" > < div > < table style ="width: 515px" align =center> <tr > < td colspan ="3" style ="height: 23px; text-align: center;" > < span style ="font-family: 华文中宋; font-weight: bold; color: white; font-style: normal; background-color: #6699cc; font-variant: small-caps;" > 简易RSS阅读器 </ span ></ td > </ tr > < tr > < td style ="width: 1241px; height: 21px; text-align: right;" > < asp:Label ID ="Label1" runat ="server" Text ="RSS地址:" Width ="113px" Font-Names ="宋体" Font-Size ="Smaller" ></ asp:Label ></ td > < td style ="width: 8px; height: 21px" colspan ="2" > < asp:TextBox ID ="TextRSSUrl" runat ="server" Width ="386px" ></ asp:TextBox ></ td > </ tr > < tr > < td colspan ="3" style ="text-align: center" > < asp:Button ID ="ButtonSubmit" runat ="server" OnClick ="ButtonSubmit_Click" Text ="提 交" /> < asp:Button ID ="ButtonReset" runat ="server" OnClick ="Button1_Click" Text ="重 填" /> < input id ="ButtonExit" type ="button" value ="退 出" onclick ="window.close();" /></ td > </ tr > </ table > </ div > </ form > </ body > </ html >