Can anyone help I am trying to get a WebControl toolbar to work
this is my code for a toolbar in visual web developement 2005 express for C#
<%@ Page Language="C#" Debug="true" %>
<%@ Import Namespace="Microsoft.Web.UI.WebControls" %>
<%@ Register TagPrefix="ie" Namespace="Microsoft.Web.UI.WebControls"
Assembly="Microsoft.Web.UI.WebControls" %>
<html>
<head>
<script language="C#" runat="server">
public void ShowSelectedButton(Object sender, EventArgs e)
{
ToolBarSelection.Text = sender.ToString();
}
</script>
<body>
<form id="toolbar" runat="server">
<form id="toolbar" runat="server">
<webControls:Toolbar id="myToolbar" runat="server"
onButtonClick="ShowSelectedButton">
<webControls:ToolbarButton id="Home" Text="Home" />
<webControls:ToolbarSeparator />
<webControls:ToolbarButton id="Products" Text="Products" />
<webControls:ToolbarSeparator />
<webControls:ToolbarButton id="About" Text="About" />
<webControls:ToolbarSeparator />
<webControls:ToolbarButton id="Contact" Text="Contact" I
mageUrl="contact.gif" />
</webControls:Toolbar>
You Selected:
<asp:label id="ToolBarSelection" runat="server" />
</form>
and this is the error I get
Parser Error Message: Could not load file or assembly 'Microsoft.Web.UI.WebControls' or one of its dependencies. The system cannot find the file specified.
Line 2: <%@ Page Language="C#" Debug="true" %>
Line 3: <%@ Import Namespace="Microsoft.Web.UI.WebControls" %>
Line 4: <%@ Register TagPrefix="ie" Namespace="Microsoft.Web.UI.WebControls"
Line 5: Assembly="Microsoft.Web.UI.WebControls" %>
Line 6: <html>
and the log for the error
LOG: DisplayName = Microsoft.Web.UI.WebControls
(Partial)
LOG: Appbase = file:///C:/nwosu_spring07/
LOG: Initial PrivatePath = C:\nwosu_spring07\bin
Calling assembly : System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\conf ig\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: The same bind was seen before, and was failed with hr = 0x80070002.