[Last Call] Learn how to a build a cloud-first strategyRegister Now


Visual Studio Intellisense not picking up my WebControls

Posted on 2008-11-18
Medium Priority
Last Modified: 2013-12-17

In the current program that Im writing I have several custom web controls.

An example of one of these webcontrols would be the pixeloption control. See the attached code snippit.

The VS intellisense works for the "<pixel:pixeloptiondialog runat="server" id="ppoOptions" autohide="true" >" part perfectly. When I hit "Ctrl + Space" I get a droplist of properties that i can set. However the intellisence does not work for my child controls. So when I hit "Ctrl + Space" I get nothing.

Has anyone any idea how I could get this to work?

<pixel:pixeloptiondialog runat="server" id="ppoOptions" autohide="true" >
        <pixel:pixeloption function="Add"  label="Add Sub" onclientclick="AddDirectory" />
        <pixel:pixeloption function="Edit" label="Rename" onclientclick="RenameDirectory"/>
        <pixel:pixeloption function="Delete" onitemclicked="DeleteDirectory" />

Open in new window

Question by:adavir
  • 2
  • 2
LVL 96

Expert Comment

by:Bob Learned
ID: 22994229
I don't quite understand your description.  Are you saying the PixelOptionDialog has child controls defined?

Author Comment

ID: 23313347
Just to close this Question, I figured this one out.

I knew that the pixeloptiondialog class had to have the following attributes defined...

ToolboxData("<{0}:PixelButtonList runat=\"server\"></{0}:PixelButtonList>")]
public class PixelButtonList : WebControl, INamingContainer

but I didnt know that for each child item that you want intellisence to detect you need to have its Persistence mode defined. My Buttons collection is now defined as follows...

[PersistenceMode(PersistenceMode.InnerProperty)]   <-- This is the key
public PixelButtonCollection Options
          return _Options;
          _Options = value;

It works a dream! Thanks for your help
LVL 96

Accepted Solution

Bob Learned earned 1000 total points
ID: 23315789
Did not get any information from asker.

Author Comment

ID: 23316048
There is plenty of information in the question, there is no shame in not knowing the answer.

Sorry I didnt respond to your initial comment, i figured you couldnt help me as you asked...

"Are you saying the PixelOptionDialog has child controls defined?" of course it does, look at the Code Snippit. You can see that I have a PixelOption collection. The key to answering the question was reading the line "the intellisence does not work for my child controls."

thanks for your help


Featured Post

Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question