Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > How can I prevent SmartTag from showing?

Reply
Thread Tools

How can I prevent SmartTag from showing?

 
 
amanda
Guest
Posts: n/a
 
      02-24-2006
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.

 
Reply With Quote
 
 
 
 
amanda
Guest
Posts: n/a
 
      02-24-2006
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;
}
}

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Using UIEditor in a SmartTag Jeremy Tang ASP .Net Building Controls 0 05-16-2006 10:39 PM
How can i prevent to connect my wi-fi zone from other uninvited access point? nomenklatura Wireless Networking 3 01-26-2006 11:21 PM
Can I prevent the kids connecting to any available network ? anthony Wireless Networking 4 04-26-2005 11:50 AM
[Media] Only IT certification can help prevent another wave of costly technology glitches T-Bone MCSE 1 02-02-2005 03:50 PM



Advertisments
 



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