473,804 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:FooTextB ox runat=server... />

I have one nagging problem left. I plan on having a "FooDropDownLis t"
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:DropDownLi st> -->
<xsd:complexTyp e name="DropDownL istDef" vs:noambientcon tentmodel="true ">
<xsd:choice>
<xsd:element name="ListItem" type="ListItemD ef" />
</xsd:choice>
<xsd:attribut e name="BorderSty le" type="BorderSty le" vs:readonly="tr ue" />
<!-- 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:FooDropDow nList runat=server>
<asp:ListItem>B lue</asp:ListItem>
<asp:ListItem>Y ello</asp:ListItem>
</foo:FooDropDown List>

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

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

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

Similar topics

2
2594
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 example right now when I hit '<' i get a list of controls like <asp:(somecontrols)>. I was wondering if there is a way so that when i hit '<' I will also get a list like <mycompany:(mycustomcontrols)>. Any pointers or documentation would be...
1
4028
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. When I reference the resulting dll from another project however none of the comments come up in intellisense or the object browser. I have set the property in the project properties to compile it to an xml file - which it does and the file contents...
3
10839
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 which has to parameters passed to it from another Web page Parameter # 1 dbid and Parameter # 2 reportid. I know that I can access the values of the parameters from the code behind .aspx.cs using Request.QueryString so
4
1601
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 property to be shown in a combo box ie similar to Intellisense. How do you enumerate the Types available? Are their mechanisms for filtering the list to show only (say) primitive types or custom types or reference types? TIA
2
1557
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 the click event of each specific button within the control at the form level, but I am not sure how this is achieved. The events that I can see are directly linked to the whole control that is on the form. How do I add an event handler at the...
10
2252
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 values, but provides some more methods. Unfortunately, you cannot derive from System.Enum to do this. I noticed that if you type "Dim C as System.Drawing.Color = ", the editor will display a list of colors, but this are actually ReadOnly Shared
1
1130
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 return a small amount of Html with another custom control tag inside this html. For example:
1
1782
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 EXTERNAL, so I'd like these to drop down in an intellisense box. Is it possible? Thanks, Jon
6
1886
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 pressing a button or changing text in a textbox). It gets set up and on the user control on my web page I can see the event from intellisense. So it seems to be set up, but I am trying to get an easy example of how I would now use this event. ...
0
9594
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10595
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...
1
10341
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10089
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
9171
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
6862
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
5530
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
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3831
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.