rss 实现2

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">
                    
&nbsp;<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>
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值