Entries Tagged ‘custom controls’

Quick Tip: Create custom server controls with a grain of salt

In asp.net world, creating custom server controls has become some sort of a standard. In fact, it is so easy to create a server control, that developers usually do it without thinking. The problem is, that server controls are a bit more complex than an average Joe would think. There are bunch of things you […]

Quick tip: Templated controls

If you create a templated server control, import it into your web-site or web application and you want to do: <my:Control ID=”myControl” runat=”server”> <ItemTemplate> Some text, html or whatever. </ItemTemplate> </myControl> and you are allowed to do only: <my:Control ID=”myControl” runat=”server” /> you need to modify your ItemTemplate property to look like this: [TemplateContainer(typeof(MyTemplateControl))] [Browsable(false)] […]