473,395 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

webControls C#

6
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.
Jan 28 '07 #1
0 1099

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Chuck Farah | last post by:
I keep getting this error running a VB .NET web forms application. I exit visual studio kill the aspnet_wp.exe process and restart vs and works again. Any help would be appreciated. Just to...
4
by: Rodrigo DeJuana | last post by:
Howdy, I'm new to this .net stuff and really have little to no training. Im trying to create a new page for a web form, so i have been pretty much jsut coping code. I having some issue with...
3
by: CW | last post by:
I have downloaded, built and installed iewebcontrols. I tested the sample application and everything worked just fine. However, when I attempt to add Microsoft.Web.UI.WebControls.dll to the VS.Net...
1
by: KMart | last post by:
Hello, I have a ASP.NET/C# application that uses the IE Web Controls. Everything was working fine. Then, for some unknown reason, everything stopped working. Here's the error information: ...
0
by: I am Sam | last post by:
Ok whats wrong with my toolbar? When I debug I don't get an error message and the databinding is working correctly but the toolbar itself and the <iewc:ToolbarDropDownlist /> control isn't showing...
1
by: Lorenc | last post by:
Recently I am getting this error randomly while working with visual studio ..NET 2003 on a C# project and browsing my application. Everything comes to normal after rebooting. Can someone help on...
3
by: dave | last post by:
We have an application that works perfectly in-house (tested on 3 different servers). It uses Microsoft.Web.UI.WebControls.dll for menubars and toolbars. Problem Description: We uploaded...
2
by: loga123 | last post by:
Hi All, I am using Link Button for DELETE on the gridview. When I click on DELETE link, I get the ArgumentOutOfRangeException. But...it deletes the record from table in the database. On...
1
by: loga123 | last post by:
Hi All, I am using Link Button for DELETE on the gridview. When I click on DELETE link, I get the ArgumentOutOfRangeException. But...it deletes the record from table in the database. On...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.