Kamis, 18 Juli 2013

How to Bind Bulleted List using XMLDataSource in ASP.NET


Related Post

<%@ Page Language="C#" %>
<!DOCTYPE html>
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
   
        <asp:BulletedList ID="BulletedList1" runat="server" DataSourceID="XmlDataSource1" DataTextField="Text" DataValueField="url" DisplayMode="HyperLink">
        </asp:BulletedList>
        <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/database/adver.xml"></asp:XmlDataSource>
   
    </div>
    </form>
</body>
</html>
Output
Bind Bulleted list using xmldata source in asp.net
 

Tidak ada komentar:

Posting Komentar