How can I prevent SmartTag from showing?

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default How can I prevent SmartTag from showing?

    Hi,

    I've a webcontrol which inherited from BaseValidator.
    Under the .Net 2.0, such control has a default function----SmartTag,
    which is new in 2.0.
    But I do not need it.
    How can I do ?
    My ValidatorDesigner is inherited from ControlDesinger.

    /// <summary>
    /// Summary description for ValidatorDesigner.
    /// </summary>
    internal class ValidatorDesigner:ControlDesigner
    {
    ...
    }

    I have returned a null to ActionList, but the smart Tag still can be
    seen.

    /// <summary>
    /// Gets the items that will populate smart tag menu.
    /// </summary>
    protected virtual BaseActionList ActionList
    {
    get
    {
    return null;
    }
    }

    Thanks for your answer.

    amanda Guest

  2. Similar Questions and Discussions

    1. Using UIEditor in a SmartTag
      Has anyone had any luck with using an existing UIEditor (for example, ConnectionStringEditor) with a Smart Tag? Simply using the Editor...
    2. How to prevent past dates from showing
      I had the same question and have tried the above. The test works fine, but it shows all the dates incl. the past. How do I define the current date...
    3. How to prevent a checkbox from showing up in a datagrid with no records?
      Hello, I have a datagrid made up of two columns, the first has a checkbox in it and the other holds a job id. <Columns> <asp:TemplateColumn...
    4. Prevent Cashing swf
      Hi all Anybody knows how to prevent my SWF file to not be cashed by PHP. Any help or idea greatly will be appreciated. Thanks in advanced Behzad...
    5. how to prevent prevent .so-calling routine to crash from segfaults in .so
      Hi, Guys I am stuck with a problem and need some help. Platform : Linux(RedHat 7.3) Problem Area : Dynamic Shared Object Libraries, POSIX...
  3. #2

    Default Re: How can I prevent SmartTag from showing?

    Have resolved.
    See codes below.

    /// <summary>
    /// Override the ActionLists to use pull model to populate
    smart tag menu.
    /// </summary>
    public override DesignerActionListCollection ActionLists
    {
    get
    {
    DesignerActionListCollection actionLists = new
    DesignerActionListCollection();
    actionLists.Add(new
    DesignerActionList(this.Component));

    return actionLists;
    }
    }

    amanda Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139