Web Controls

There are 2 entries for the tag Web Controls
Getting a Reference back to a Web control’s Parent Container

Technorati Tags: C#,ASP.NET,Web Controls If you have worked with any type of container in ASP.NET (Grids, Repeaters, etc.) you know that you cannot simply access any of its underlying collection of controls (for example if you have a div or some other control located inside the repeater) unless you gain a reference to that repeater object first, and then perform a FindControl to search within that repeater container to gain reference to whatever nested control (in my case I wanted to reference a div) you want to work with.   Nothing new here.  But when you start playing with custom controls...

posted @ Monday, December 01, 2008 10:23 PM | Feedback (0)

Creating an ItemDataBound Event Delegate for a Nested Repeater

Technorati Tags: ASP.NET,C#,Web Controls Today I needed to create a nested grid using repeaters.  Pretty common but always a pain in the ass with all Microsoft controls.  I needed to nest my repeaters just like you’d nest any other control like the DataGrid or GridView.  The issue came up for me when I wanted to create a delegate for my nested repeater (repeater inside my parent).  Since a nested control within a control (the nested repeater in this case) is not available at the page level, Intellisense or the compiler will not know that it exists.  Because it’s nested...

posted @ Saturday, November 08, 2008 7:50 PM | Feedback (2)