By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,313 Members | 2,798 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,313 IT Pros & Developers. It's quick & easy.

Having a small problem with custom Intellisense

P: n/a

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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.