Custom control intellisense to work like DropDownList/ListItem?

Discussion in 'ASP .Net Building Controls' started by Dave, Aug 17, 2007.

  1. Dave

    Dave Guest

    Hi, I created a custom tabstrip control to work like a DropDownList in that
    when you create the dropdown, only the ListItem control is available in
    Intellisense.

    In my tabstrip, only tab controls should be allowed to be selected.

    However, I created a CustomControls.dll with a couple other controls besides
    the tabstrip. When I register and place the control on my page, I'm allowed
    to enter in other controls between the TabStrip tags. I only want to
    restrict it to allow Tab controls nested within it. In my CustomControls
    project, I wrapped the TabStrip and Tab classes around the
    "CustomControls.TabStrip" namespace but still allows me to pick other
    controls as shown....

    <%@ Register Assembly="CustomControls" Namespace="CustomControls.TabStrip"
    TagPrefix="cc1" %>

    <cc1:TabStrip id="TabStrip1" runat="server" >
    <cc1:Tab TabLabel="Tab No.1"></cc1:Tab>
    <cc1:Tab TabLabel="Tab No.2"></cc1:Tab>
    <cc1:CustomGridView....
    ...users of the tabstrip control can still pick this other control which is
    in the CustomControl.dll even though it has a different namespace.
    </cc1:TabStrip>

    If using unique namespaces in the CustomControls.dll won't work, what will?
    Or do I create different dlls for each custom control?

    Thanks, Dave.
     
    Dave, Aug 17, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mad Scientist Jr
    Replies:
    2
    Views:
    496
    Mad Scientist Jr
    Jun 29, 2004
  2. =?Utf-8?B?QW1pIFNjaHJlaWJlcg==?=

    Inserting a default ListItem in DropDownList Control

    =?Utf-8?B?QW1pIFNjaHJlaWJlcg==?=, Jan 13, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    412
  3. Jim in Arizona
    Replies:
    7
    Views:
    973
    Badass Scotsman
    Nov 22, 2006
  4. wjfamilia

    Custom ListControl has no VS intellisense for <asp:ListItem>

    wjfamilia, Aug 31, 2007, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    849
    Teemu Keiski
    Sep 1, 2007
  5. Vi

    Custom DropDownList Control and ListItem

    Vi, Nov 5, 2005, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    256
Loading...

Share This Page