473,563 Members | 2,916 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

web custom control doesn't parse

Hello,

I’m trying to create a web custom control. I’ve worked in asp.net
extensively, but this is the first time I’ve attempted a web custom control.
As a test, I created a control exactly as described in one of the
walkthroughs (except for a couple of grammatical changes that the vs.net IDE
insisted on). The one thing I did different was to compile it via the IDE
rather than the command line. But it doesn’t work.

In design mode, the page displays the following error message over the
control:
“Parser error: unknown server tag ‘Custom:First Control’”

At run time, it displays a parser error:
Parser Error Message: Could not load type CustomControls. FirstControl from
assembly CustomControls, Version=1.0.213 7.29652, Culture=neutral ,
PublicKeyToken= null.
Source Error:
Line 11: <Custom:FirstCo ntrol Message= "This control tells time. "
runat=server/>

The control identifies itself as follows:
Namespace CustomControls
Public Class FirstControl
Inherits Control

The page references it as follows:
<%@ Register TagPrefix="Cust om" Namespace="Cust omControls" Assembly =
"CustomControls " %>

<Custom:FirstCo ntrol Message= "This control tells time. " runat=server/>

I’ve confirmed that the control is compiling and that the web app is finding
the DLL. Can anyone spot what the problem is, or offer any suggestions how to
figure it out?

Thanks in advance,
eachus

Nov 19 '05 #1
0 1415

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2562
by: CroDude | last post by:
I've made a custom groupbox control. Inside, as one of it's members is CSimpleGradient object. CSimpleGradient is a wrapper class for gradient usage. Basically it looks like that: public class CSimpleGradient { private float m_GradientAngle; private Color m_ColorA; private Color m_ColorB;
0
1458
by: Lloyd Dupont | last post by:
I'm trying to create a templated custom control which hold a collection of something else in his property 'Panels' when this property is of type ArrayList it parse ok. however when I try to use a custom typed collection inherited from IList I get an error when parsing: Ligne 4 : <br> Ligne 5 : <galador:SelectPanel runat="server"...
1
2765
by: Elie Medeiros via .NET 247 | last post by:
Hi there, I have written a custom validator function to validate a datefrom a user-filled field. The function tries to parse the dateand if it can't, sets (serverValidateEventArgs)e.IsValid tofalse. The twist is that it allows blank dates to be entered - viz,e.IsValid==true if the field is left blank. The idea is to usethat validation...
7
2977
by: Shimon Sim | last post by:
I have a custom composite control I have following property
4
1779
by: DKode | last post by:
I have developed a custom server control that displays a login page that authenticates against AD. The server control works fine, but now I am trying to figure out the best way to output custom html. The HTML output for the server control changes for each application I include the server control in. At first I thought about making an html file...
0
3244
by: Jeremy Chapman | last post by:
I have included below virtually all the code to a control I'm trying to build. My issue is that an array list property in my control does not get persisted properly to the aspx page code in design time. If I type the code in the aspx manually it does get parsed correctly though. This is an example of the aspx code that gets parsed...
15
6491
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt accept other controls. The control i drag drop on it becomes the child of my custom control's parent form and not the child of my custom control. Then...
1
384
by: xamman | last post by:
i have the same problem as this earlier post (unfortuneately he never received a reply) any suggestions? thx I'm trying to create a web custom control. I've worked in asp.net extensively, but this is the first time I've attempted a web custom control. As a test, I created a control exactly as described in one of the walkthroughs (except...
1
1032
by: raghulvarma | last post by:
I have created a custom control to get the values and sum them, Here I am able to get display the controls but I am not able to add the values in the text box which means that I am not able to catch the event handling function how is it to be done and my second question is when I press the sum button the values in the textbox gets erased should...
5
4095
by: gerry | last post by:
I am trying to create a custom container control that will only ever contain a specific type of control. At design time, when a control of a different type is added to the container I would like to wrap the control in the proper control type - which is also a container. At design time I want to be able to turn this : <my:container>...
0
7664
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
0
8106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7638
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7948
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6250
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3642
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.