[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.buildingcontrols

Filtering List Of Css Styles Available

Phil

10/11/2007 12:39:00 PM

Hello fellow Comrades,
I am writing a custom control and trying to only return a specifi list
of styles available to select from the dropdown list of CssClass.

I know it is similar to filtering the list of controls available to select
from such as:

Public Class MyCustomEditor
Inherits ControlIDConverter

Protected Overrides Function FilterControl(ByVal control As
System.Web.UI.Control) As Boolean
If control.ID.EndsWith("test") Then
Return True
Else
Return False
End If
End Function
End Class

This class will only return controls that end with "test", i am looking to
do the same with CssClass.

Many Thanks In Advance
Phil