asp.net-controls

how to assign a control property value from a global variable in page code?

Greetings, I have a control and list of variables and I want in the control property to be assigned to the variable value directly in the page not from the back code, something like this My global variables public string Banana = "banana_pie"; public string Apple = "apple_pie"; in my custom control instead of: <uc:LoadPie id="pieB...

Can you nest asp.net controls ?

I want to create control which would contain other controls. For these other controls I want to create "base" control with some default look and background logic and then derive all other controls from this "base" control. Is this possible, and how it can be done ? EDIT: With nesting I mean something like master pages. I would lik...

How can I create a custom Repeater that displays Header, Footer based on properties?

I want to create a Repeater that displays the header/footer based on properties, only if the DataSource is empty. public class Repeater : System.Web.UI.WebControls.Repeater { public bool ShowHeaderOnEmpty { get; set; } public bool ShowFooterOnEmpty { get; set; } [DefaultValue((string)null), PersistenceMode(PersistenceMo...