rssreader.aspx

来自「Windows 绑定代码实例」· ASPX 代码 · 共 32 行

ASPX
32
字号
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="rssreader.aspx.vb" Inherits="rssreader" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="http://blog.delphij.net/index.xml">
        </asp:XmlDataSource>
    
    </div>
        <asp:FormView ID="FormView1" runat="server" BackColor="White" BorderColor="#E7E7FF"
            BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="XmlDataSource1"
            GridLines="Horizontal">
            <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
            <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
            <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
            <EditRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# xpath("title") %>'></asp:Label><br />
                <asp:Label ID="Label2" runat="server" Text='<%# xpath("description") %>'></asp:Label>
            </ItemTemplate>
        </asp:FormView>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?