Ask a Question related to ASP.NET Building Controls, Design and Development.
-
amanda #1
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
-
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... -
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... -
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... -
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... -
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... -
amanda #2
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



Reply With Quote

