DesignTimeDiagnostic
IMPORTANT: This control is for use in design-time only. Nothing is rendered at run-time.
The DesignTimeDiagnostic server control is used to verify the connection to Ektron’s server controls Web servicesEktron Windows Service uses Windows Web Services to perform these activities: • Schedules the future publication and removal of content. • Transmits notifications that a sync should be started between the staging and production servers. • In the 3-Tier feature, transfers data between servers.. When added to a Web form, this control provides the following information:
- Web Service Path. The server control Web service path in your web.config file.
- Web Service Exists. Calls a method in the Web service that returns True if the Web service exists. If it does not, it returns False.
- Test Login Control. Displays a Login server control to show that the Web service is connected and working properly. When not connecting properly, an error message appears.
The DesignTimeDiagnostic server control has no definable Ektron properties.
The following example shows the control on a page connected to the Web service.
The following example shows the control on a page not connecting to the Web service. Note that the path is not the correct path. It should be: http://192.168.0.82/siteroot/Workarea/ServerControlWS.asmx
Inserting the DesignTimeDiagnostic server control onto a page
You must have installed the server controls. See Installing server controls into Visual Studio Toolbox.
- In Visual Studio, choose View > Toolbox.
- Click the Ektron server control tab to display the server controls.
- Drag the DesignTimeDiagnostic server control and drop it into the desired location on the page.
NOTE: You also can place the cursor on the page where you want the server control, then double click the server control that you want.
<CMS:DesignTimeDiagnostic ID="DesignTimeDiagnostic1" runat="server" />
- Click on
DesignTimeDiagnostic
in the code to display and modify the control’s properties using the Properties window of Visual Studio. The page is updated as you modify the property values.DoInitFill (Boolean)
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.