We are attempting to add a WebScheduleInfo control to our pages and are running into some problems with Content pages. We can successfully add all the required controls and access the SqlServer database from standalone aspx pages. But any attempts to add those exact same controls to a Master page results in a timed out connection to the database. Below are two example aspx pages.
testNoMaster.aspx. This sample works correctly, connects to the database and dispalys appointments for the current month.
<%@ Register Assembly="Infragistics35.WebUI.WebSchedule.v8.1, Version=8.1.20081.2033, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
<%@ Register Assembly="Infragistics35.WebUI.WebScheduleDataProvider.v8.1, Version=8.1.20081.2033, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
Namespace="Infragistics.WebUI.Data" TagPrefix="ig_scheduledata" %>
<head runat="server">
<body>
<form id="form1" runat="server">
<div>
SelectCommand=";"></asp:SqlDataSource>
<ig_scheduledata:WebScheduleSqlClientProvider ID="WebScheduleSqlClientProvider1"
WebScheduleInfoID="WebScheduleInfo1">
</ig_scheduledata:WebScheduleSqlClientProvider>
<igsch:WebScheduleInfo ID="WebScheduleInfo1" runat="server">
</igsch:WebScheduleInfo>
</igsch:WebMonthView>
</div>
</html>
This page times out when attempting to connect to the database. The controls in the content pane are a direct copy from the page above that works correctly.
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
Can anyone point me to a solution to this problem. If we can not find one we will most likely be finding some other controls to purchase instead.
Andrew Taft
Hi Andrew,
I believe the problem has to do with how you're setting the WebScheduleInfoId properties on the DataProvider. My guess is that it's not resolving the control correctly, b/c it's in a naming container.
Instead, you should use the CodeBehind to set the WebScheduleInfo property, on all controls, inclucing the View controls
Hope this helps,
-SteveZ