or
<PagerStyle Mode="NextPrevNumericAndAdvanced" /> <fieldset> <legend>Scheduling</legend> <asp:ObjectDataSource ID="ListenerList" runat="server" SelectMethod="GetListenersList" TypeName="DIS.Business.BLL.Listeners"></asp:ObjectDataSource> Listener<telerik:RadComboBox ID="Listener" runat="server" DataSourceID="ListenerList" DataTextField="ComputerName" DataValueField="ID" Skin="Web20"> </telerik:RadComboBox> <br /> <asp:ObjectDataSource ID="FrequencyList" runat="server" SelectMethod="GetSchedulePatternList" TypeName="UtilityClass.Utility"></asp:ObjectDataSource> Frequency<asp:RadioButtonList ID="Frequency" runat="server" DataSourceID="FrequencyList" RepeatLayout="Flow" RepeatDirection="Horizontal" OnSelectedIndexChanged="Frequency_SelectedIndexChanged" AutoPostBack="True" OnDataBound="Frequency_DataBound"> </asp:RadioButtonList> <br /> <asp:CompareValidator ID="FromAndToComparValidator" runat="server" ErrorMessage="To Date Must be Later than From Date" ControlToValidate="ToTime" ControlToCompare="FromTime" Operator="GreaterThan"></asp:CompareValidator><br /> From<span class="required">*</span> <telerik:RadDateTimePicker ID="FromTime" runat="server" MinDate="2000-01-01" Skin="Web20"> <TimePopupButton HoverImageUrl="" ImageUrl="" /> <TimeView CellSpacing="-1"> </TimeView> <Calendar Skin="Web20" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x"> </Calendar> <DatePopupButton HoverImageUrl="" ImageUrl="" /> </telerik:RadDateTimePicker> <asp:RequiredFieldValidator ID="FromTimeValidator" runat="server" ErrorMessage="Date Required" ControlToValidate="FromTime"></asp:RequiredFieldValidator><br /> To<span class="required">*</span> <telerik:RadDateTimePicker ID="ToTime" runat="server" Skin="Web20"> <TimePopupButton HoverImageUrl="" ImageUrl="" /> <TimeView CellSpacing="-1"> </TimeView> <Calendar Skin="Web20" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x"> </Calendar> <DatePopupButton HoverImageUrl="" ImageUrl="" /> </telerik:RadDateTimePicker> <asp:RequiredFieldValidator ID="ToTimeValidator" runat="server" ErrorMessage="Date Required" ControlToValidate="ToTime"></asp:RequiredFieldValidator> <br /> <asp:ObjectDataSource ID="WeekdayList" runat="server" SelectMethod="GetWeekDayList" TypeName="DIS.Business.BLL.WeekDays"></asp:ObjectDataSource> <asp:Label ID="lblEvery" runat="server" Text="Every"></asp:Label> <asp:TextBox ID="MinuteInterval" runat="server" MaxLength="5"></asp:TextBox><asp:Label ID="lblMinutes" runat="server" Text="Minutes"></asp:Label> <asp:CheckBoxList ID="Weekday" runat="server" DataSourceID="WeekdayList" RepeatDirection="Horizontal" RepeatLayout="Flow" Visible="False"> </asp:CheckBoxList> </fieldset> <br /> <telerik:RadAjaxPanel ID="RadAjaxPanelNotification" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" HorizontalAlign="NotSet"> <fieldset> <legend>Notification</legend> <asp:CheckBox ID="SendSuccessful" runat="server" Text="Send notification if successful." OnCheckedChanged="NotificationChanged" AutoPostBack="True" /> <asp:CheckBox ID="SendFailed" runat="server" Text="Send notification if failed." OnCheckedChanged="NotificationChanged" AutoPostBack="True" /><br /> <asp:Panel ID="PanelEmailDetail" runat="server" Visible="False"> New Email<br /> <asp:TextBox ID="NewEmail" runat="server" MaxLength="128"></asp:TextBox><asp:Button ID="AddEmail" runat="server" Text="Add Email" OnClick="AddEmail_Click" /><br /> <asp:ListBox ID="EmailList" runat="server" SelectionMode="Multiple" Rows="5"></asp:ListBox> <asp:Button ID="RemoveEmail" runat="server" Text="Remove Email" OnClick="RemoveEmail_Click" style="width: 125px" /><br /> </asp:Panel> </fieldset> </telerik:RadAjaxPanel> <asp:Button ID="Save" runat="server" Text="Save" OnClick="Save_Click" /> <asp:Button ID="BtAssignedUsers" runat="server" Font-Bold="True" Text="Assigned Users" /> <telerik:RadInputManager ID="RadInputManager1" runat="server" OnInit="RadInputManager1_Init" Skin="Web20"> <telerik:TextBoxSetting BehaviorID="Behavior1"> <TargetControls> <telerik:TargetInput ControlID="JobName" /> <telerik:TargetInput ControlID="Description" /> </TargetControls> <Validation IsRequired="true" ValidationGroup="JobScheduling_1" /> </telerik:TextBoxSetting> <telerik:RegExpTextBoxSetting BehaviorID="Behavior2" ErrorMessage="Invalid Email" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"> <TargetControls> <telerik:TargetInput ControlID="NewEmail" /> </TargetControls> <Validation IsRequired="true" ValidationGroup="JobScheduling_1_Email" /> </telerik:RegExpTextBoxSetting> <telerik:NumericTextBoxSetting BehaviorID="Behavior3" Culture="English (United States)" DecimalDigits="0" DecimalSeparator="." GroupSeparator="," GroupSizes="3" MaxValue="10000" MinValue="0" NegativePattern="-n" PositivePattern="n"> <TargetControls> <telerik:TargetInput ControlID="MinuteInterval" /> </TargetControls> </telerik:NumericTextBoxSetting> </telerik:RadInputManager> </td> </tr> </table> protected void NotificationChanged(object sender, EventArgs e) { ChangeNotificationUI(); } private void ChangeNotificationUI() { bool blnDisplayNotificationList = this.SendSuccessful.Check || this.SendFailed.Checked; this.PanelEmailDetail.Visible = blnDisplayNotificationList; }