Skining Custom Controls
For the longest time I couldn't skin my custom control, background: a custom control looks like this:
public class MyGridView : GridView
{
...
}
This custom controls was in a separate class library. Bill researched the problem and it appears that you can't skin a custom control that is in a nested namespace. I.e. the custom control can't have this:
namespace MyNamespace.SubNameSpace
{
public class MyGridView : GridView
{
...
}
}
It has to be in a single namespace to work:
namespace MyNamespace
{
public class MyGridView : GridView
{
...
}
}
Visual Studio 2005 - .NET 2.0 - ASP.NET 2.0
{6230289B-5BEE-409e-932A-2F01FA407A92}
Comments
Post a Comment