It's been a while since I worked on WebForms so I need a refresher when working on an old site.
I have a userControl on the page that I need to programatically set the enabled state
<%@ Register Src="CalandarControl.ascx" TagName="CalandarControl" TagPrefix="uc" %>
I have this at the C# code but Enabled is not available here. What am I missing?
if (c is UserControl)
var x = c.GetType();
if (x.Name == "calendarcontrol_ascx")
((UserControl)c).Enabled = true;