<%@ Page language="c#" AutoEventWireup="false" %>
<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
<HTML>
	<HEAD>
		<title>ToolbarExample2</title>
		<script language="C#" runat="server">
		void Toolbar1_ButtonClick(object sender, System.EventArgs e)
		{
			string senderID = sender.ToString().Split('-')[1].Trim();
			if(senderID == "GoToolbarButton")
			{
				string url = ((ToolbarTextBox)Toolbar1.Items[2]).Text;
				Response.Redirect(url);
			}
			else if(senderID == "FirstPageToolbarButton")
			{
				Response.Redirect("http://www.microsoft.com");
			}
			else
			{
				return;
			}
		}
		</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<iewc:toolbar id="Toolbar1" style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 0px" runat="server"
				Font-Size="9pt" OnButtonClick="Toolbar1_ButtonClick">
				<iewc:ToolbarSeparator></iewc:ToolbarSeparator>
				<iewc:ToolbarLabel Text="ÍøÖ·£º"></iewc:ToolbarLabel>
				<iewc:ToolbarTextBox ID="UrlToolbarTextBox" Text="http://"></iewc:ToolbarTextBox>
				<iewc:ToolbarButton Text="GO" ImageUrl="root.gif" ID="GoToolbarButton"></iewc:ToolbarButton>
				<iewc:ToolbarSeparator></iewc:ToolbarSeparator>
				<iewc:ToolbarButton Text="Ö÷Ò³" ImageUrl="home.gif" ID="FirstPageToolbarButton"></iewc:ToolbarButton>
				<iewc:ToolbarSeparator></iewc:ToolbarSeparator>
			</iewc:toolbar><br>
			<br>
		</form>
	</body>
</HTML>
