473,320 Members | 1,868 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,320 software developers and data experts.

Having a small problem with custom Intellisense


I have set up custom Intellisense for our project. (In a nutshell, we will
have ASP.NET controls based on many of the statndard WebControls, but with a
few extensions that we will be adding). I've put a custom XSD in the
schemas\xml directory and it works pretty great. It's largely based on the
asp.xsd.

My problem is that while this works great for most controls, providing
Intellisense whenever I have:

<foo:FooTextBox runat=server... />

I have one nagging problem left. I plan on having a "FooDropDownList"
control based on the ASP.NET DrownDownList control. I'd like Intellisense to
only allow <asp:ListItem/> without tagging it as invalid. However, I cannot
override by default prefix of "foo". I've tried several educated guesses, but
I always end up with <foo:ListItem/>. And since ListItem is sealed, I can't
just make a dummy FooListItem.

Here is the xsd that I have so far:

<!-- <foo:DropDownList> -->
<xsd:complexType name="DropDownListDef" vs:noambientcontentmodel="true">
<xsd:choice>
<xsd:element name="ListItem" type="ListItemDef" />
</xsd:choice>
<xsd:attribute name="BorderStyle" type="BorderStyle" vs:readonly="true" />
<!-- edits... -->
</xsd:complexType>

I'm not a xml/xsd guru, so I'm not sure what I'd need to do to get it to
work. Ideally I'd like the following to be valid (and only the following):

<foo:FooDropDownList runat=server>
<asp:ListItem>Blue</asp:ListItem>
<asp:ListItem>Yello</asp:ListItem>
</foo:FooDropDownList>

Thanks in advance. This is the last piece of the puzzle.

--
--James Bright
Nov 12 '05 #1
0 1466

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

Similar topics

2
by: Nick Kafenzakis | last post by:
Hi, I am thinking about creating some custom server controls in Visual Studio .NET 2003 using VB.NET. One thing I am wondering about is how I can get the control to show up in the IDE....for...
1
by: Mark | last post by:
Hi I have been using the <summary> tags etc to add references to my classes etc. When I use this within the project the comments come through in intellisense and also in the object browser. ...
3
by: Joe Bloggs | last post by:
Does anyone know if its possible to pass parameters or the values of Request.QueryString from a web page to a custom control class? I'm using a C# Web Application. For Example I have Web Page1...
4
by: CrispinH | last post by:
I'm building an application generator and within it a user can create a new property (for the class they are building). I'd like then to offer a list of Types - built-in and custom - for this new...
2
by: Mac via DotNetMonster.com | last post by:
Hi all, In my VB windows application, I have created a User Control that contains a few buttons and a text box. This control is then placed on several forms. What I would like to do is capture...
10
by: Michael Feld | last post by:
Hello, does anyone know how to produce a data type which offers Enum-like IntelliSense in VS 2005? What I am trying to create is a type which is very similar to an enum, i.e. has a fixed set of...
1
by: SlimFlem | last post by:
I hope this makes sense. Here is what I am attempting. I have an inital generic aspx page that has one custom tag: <web:site id=webSite runat=server/> When this control evaluates, it will...
1
by: Jon | last post by:
Hello all, I have created a custom web.confif section and all works fine. However, is there a way to add intellisense to the elements? For example, one of the elements can only be INTERNAL or...
6
by: tshad | last post by:
I was looking at a page that showed how to set up a custom event and it seems to work ok. But I am not sure how I would use it. How would I subscribe to it. There is actual action (such as...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.