473,797 Members | 2,933 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

attempt to create my own templated custom control

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:Select Panel runat="server" id="SelectPanel 1">
Ligne 6 : <Panels>
Ligne 7 : <galador:NamedU serControl runat=server Name="toto">
Ligne 8 : eofwhfopw wojw po

it said (I translate)(erro r on line6) 'ambiguous correspondance found'
it doesn't like my Panel property when I defined it as
public NamedUserContro lCollection Panels
{
get {}
}
where
public class NamedUserContro lCollection : IList
{
}

while if I use ArrayList instead of NamedUserContro lCollection it works
fine.. any tip ?

//............... ............... ........
I have also 2 other question:
- where should I define my schema so VS.NET build and recognize my custom
controls correctly ?
- why on my main page VS.NET don't like my register tags ? my first few
lines (for default.aspx) are above and VS.NET told they are not valid in the
current schema (although they work well)....

<%@ Register TagPrefix="pers o" TagName="SideBa r" src="SideBar.as cx" %>
<%@ Register TagPrefix="pers o" TagName="Welcom e" src="main/welcome.ascx" %>
<%@ Register TagPrefix="prev iew" TagName="Previe w"
src="preview/PreviewMain.asc x" %>
<%@ Page language="c#" Codebehind="def ault.aspx.cs" AutoEventWireup ="false"
Inherits="perso ._default" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
to be continued....
Nov 17 '05 #1
0 1471

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

Similar topics

0
1111
by: Christian H | last post by:
I have just created a custom control. it consists of a radiobuttonlist, and a validator for that radiobuttonlist. I've added a property in my control that holds a placeholder. I want to use this placeholder, so that I can add the validator of my control somewhere else in the page than "inside" my custom control. By design it would be like this: <someplaceholder></someplaceholder> <myControl></myControl>
0
1139
by: Ricky Li | last post by:
I went through some article to see how I can add schema validation for my templated control by adding an XSD file into the VS.NET schema folder. Everything works fine for a schema like this: <mycontrolns:mycontrol id="test" runat="server"> <mytemplate>test</mytemplate> </mycontrolns> and I was able to specify the XSD to validate "mytemplate" as the only valid child type for "mycontrol". Here's a challenge: Is there anyway
0
1550
by: Earl Teigrob | last post by:
I have created a templated custom control that simply creates a spacing table around other objects. This control works fine for most uses but when I add it inside the ItemTemplate of a DataGrid Control, Container.DataItem of the DataGrid control can no longer be access from within the template of my custom control. Is there a way to qualify the Container.DataItem object or some other method for me to access it from within my templated...
1
3238
by: Andrew Clancy | last post by:
Hi, Myself and a colleague are attempting to mimic the custom template functionality of the ASP.Net 2 Login control. Essentially, we would like to have the ability within our CompositeControl/CompositeControlDesigner to have and Action or Verb in the control's smart tag titled 'Convert to Template' which actually converts the whole control, including it's child controls to templated mode. Do this in the Login control, and you'll see...
0
9685
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10468
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10245
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10021
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9063
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 project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5458
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3748
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.