Authors
| Last Name |
First Name |
Phone |
| Bennet |
Abraham |
415 658-9932 |
| Blotchet-Halls |
Reginald |
503 745-6402 |
| Carson |
Cheryl |
415 548-7723 |
| DeFrance |
Michel |
219 547-9982 |
| del Castillo |
Innes |
615 996-8275 |
| Dull |
Ann |
415 836-7128 |
| Green |
Marjorie |
415 986-7020 |
| Greene |
Morningstar |
615 297-2723 |
| Gringlesby |
Burt |
707 938-6445 |
| Hunter |
Sheryl |
415 836-7128 |
| Karsen |
Livia |
415 534-9219 |
| Locksley |
Charlene |
415 585-4620 |
| MacFeather |
Stearns |
415 354-7128 |
| McBadden |
Heather |
707 448-4982 |
| O'Leary |
Michael |
408 286-2428 |
| Panteley |
Sylvia |
301 946-8853 |
| Ringer |
Anne |
801 826-0752 |
| Ringer |
Albert |
801 826-0752 |
| Smith |
Meander |
913 843-0462 |
| Straight |
Dean |
415 834-2919 |
| Stringer |
Dirk |
415 843-2991 |
| White |
Johnson |
408 496-7223 |
| Yokomoto |
Akiko |
415 935-4228 |
Source Code
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<script runat="server">
void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
if (DropDownList1.SelectedValue == "Phone List")
{
Xml1.TransformSource = "Authors1.xslt";
}
else if (DropDownList1.SelectedValue == "Address List")
{
Xml1.TransformSource = "Authors2.xslt";
}
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>XML Web Server Control</title>
</head>
<body style="font-family:Arial">
<form id="form1" runat="server">
<div>
<h1>Authors</h1>
<asp:DropDownList ID="DropDownList1" Runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"
AutoPostBack="True">
<asp:ListItem>Phone List</asp:ListItem>
<asp:ListItem>Address List</asp:ListItem>
</asp:DropDownList>
<br />
<asp:Xml ID="Xml1" Runat="server" DocumentSource="Authors.xml" TransformSource="Authors1.xslt"></asp:Xml>
</div>
</form>
</body>
</html>