asp.net BulletedList example: populate from XmlDataSource [InLine Xml Data]
BulletedListXmlDataSourceExample.aspx
<%@ Page Language="C#" %>
<!DOCTYPE html>
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>asp.net BulletedList example: populate from XmlDataSource [InLine Xml Data]</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2 style="color:Green">Example: Populate BulletedList From XmlDataSource</h2>
<asp:BulletedList
ID="BulletedList1"
runat="server"
DataSourceID="XmlDataSource1"
BulletStyle="LowerAlpha"
DataTextField="Name"
DataValueField="ID"
BackColor="OrangeRed"
Font-Italic="true"
ForeColor="AliceBlue"
BorderWidth="2"
BorderColor="DarkOrange"
Width="250"
>
</asp:BulletedList>
<asp:XmlDataSource ID="XmlDataSource1" runat="server">
<Data>
<Controls>
<Control ID="1" Name="RegularExpressionValidator" />
<Control ID="2" Name="CompareValidator" />
<Control ID="3" Name="CustomValidator" />
<Control ID="4" Name="ValidationSummary" />
<Control ID="5" Name="Menu" />
<Control ID="6" Name="SiteMapPath" />
</Controls>
</Data>
</asp:XmlDataSource>
</div>
</form>
</body>
</html>
- BulletedList control example
- DropDownList example: how to use DropDownList control in asp.net
- SiteMapPath example: how to use SiteMapPath control in asp.net
- Menu example: how to use Menu control in asp.net
- TreeView Example: how to use TreeView control in asp.net
- XmlDataSource example: how to use XmlDataSource control in asp.net