<%@ Register tagprefix="ie" namespace="Microsoft.Web.UI.WebControls" assembly="Microsoft.Web.UI.WebControls" %>
<html>
<head>
<title>ToolBar with Default Settings</title>
<script language="C#" runat="server">
public void getActive ( Object sender, EventArgs e ) {
msg.Text = "The currently active item is " + sender.ToString ( );
}
public void getSelected ( Object sender, EventArgs e ) {
msg.Text = "The currently active item is " + sender.ToString ( );
msg.Text += "<br>The currently selected item is " +
lstProducts.SelectedItem;
}
public void getText ( Object sender, EventArgs e ) {
msg.Text = "The currently active item is " + sender.ToString ( );
msg.Text += "<br>The currently entered text is " +
txtSearch.Text;
}
</script>
<link rel="stylesheet" href="/shared/netdemos.css">
</head>
<body>
<!-- #include virtual="~/shared/top.inc -->
<div class="header"><h2>ToolBar with Default Settings</h2></div>
<hr size=1 width=92%>
<div align="center">
<form runat="server">
<ie:toolbar id="tb1" runat="server"
onbuttonclick="getActive" autopostback>
<ie:toolbarcheckgroup>
<ie:toolbarcheckbutton id="btnHome" text="home" />
<ie:toolbarcheckbutton id="btnAbout" text="about us" />
<ie:toolbarcheckbutton id="btnSupport" text="support" />
</ie:toolbarcheckgroup>
<ie:toolbarseparator />
<ie:toolbarlabel text="products" />
<ie:toolbardropdownlist id="lstProducts"
onselectedindexchanged="getSelected" autopostback>
<asp:listitem text="Item 1" />
<asp:listitem text="Item 2" />
<asp:listitem text="Item 3" />
</ie:toolbardropdownlist>
<ie:toolbarseparator />
<ie:toolbarlabel text="search" />
<ie:toolbartextbox id="txtSearch"
ontextchanged="getText" autopostback />
<ie:toolbarbutton id="btnSearch"
imageurl="/shop/images/zoom.gif" />
</ie:toolbar>
<p><asp:label id="msg" runat="server" /></p>
</form>
</div>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>