Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
ActiveDayUTC and Dynamically Loaded User Controls
posted

I am loading a UserControl that contains a WebMonthView dynamically into a WebTab on Page_Load. When I try to change the visible month using ActiveDayUTC, it does not change the month and uses the current month.

In my search for an answer, I found this: http://news.infragistics.com/forums/p/6158/26612.aspx

However I'm confused about passing the WebScheduleInfo to the control.  I don't want the page to handle the WebScheduleInfo because it's used in multiple places across my application. Here is the code that I'm using on the Page_Load of the parent page:

Dim objTab As New Infragistics.WebUI.UltraWebTab.Tab(TabName)
strUserControlURL = "~/UserControls/Learning/ucSessionMonthCalendar.ascx"
objTab.ContentPane.UserControlUrl = strUserControlURL
objSessionTabs.Tabs.Add(objTab)

How can this be resolved?