473,469 Members | 1,447 Online
Bytes | Software Development & Data Engineering Community
Create 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:SelectPanel runat="server" id="SelectPanel1">
Ligne 6 : <Panels>
Ligne 7 : <galador:NamedUserControl runat=server Name="toto">
Ligne 8 : eofwhfopw wojw po

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

while if I use ArrayList instead of NamedUserControlCollection 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="perso" TagName="SideBar" src="SideBar.ascx" %>
<%@ Register TagPrefix="perso" TagName="Welcome" src="main/welcome.ascx" %>
<%@ Register TagPrefix="preview" TagName="Preview"
src="preview/PreviewMain.ascx" %>
<%@ Page language="c#" Codebehind="default.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 1446

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

Similar topics

0
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...
0
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: ...
0
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...
1
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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,...
1
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...
0
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...

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.