The page is part of a large system, so there's going to be a lot of stuff in here that won't make much sense, but here's the aspx file:
<%@ Page Language="C#" MasterPageFile="~/Admin/Includes/Admin.Master" AutoEventWireup="true" CodeBehind="Details.aspx.cs" Inherits="EVI.BullsEye.Web.Admin.Setup.SystemSettings.EmailSettings.Details" Title="Untitled Page" %>
<%@ MasterType VirtualPath ="~/Admin/Includes/Admin.Master" %>
<%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h4>E-mail Settings</h4>
<asp:Literal ID="savedLiteral" runat="server" Text="Setting Saved.<br /><br />" />
Current email template:<br />
(select from dropdown to change e-mail template) <br />
<asp:DropDownList ID="typeList" runat="server" DataTextField="TypeDisplay" DataValueField="ID"
DataSource='<%# EVI.BullsEye.BLL.ClientEmail.GetByClient(this.CurrentClientID) %>' AutoPostBack="true">
</asp:DropDownList>
<br />
<br />
<asp:FormView ID="clientEmailFormView" runat="server" DataKeyNames="id" DataSourceID="clientEmailDataSource"
OnDataBound="clientEmailFormView_DataBound" DefaultMode="Edit" OnItemUpdated="clientEmailFormView_ItemUpdated">
<EditItemTemplate>
<asp:HiddenField ID="typeIDHidden" runat="server" Value='<%# Bind("EmailTypeID") %>' />
<p>
<asp:HyperLink ID="HyperLink1" runat="Server" Text="cancel" NavigateUrl="~/Admin/Setup/SystemSettings/Default.aspx" />
<asp:LinkButton ID="LinkButton1" runat="server" Text="save" CommandName="Update" />
</p>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" />
<hr />
<p>
Please specify a "From" address for this message: <asp:TextBox ID="fromTextBox" Width="300px" runat="server" Text='<%# Bind("EmailFrom") %>' />
<asp:RegularExpressionValidator ID="fromExpressionValidator" runat="server" Display="Dynamic" EnableClientScript="False"
ErrorMessage="E-mail is not in a valid format" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
ControlToValidate="fromTextBox">*</asp:RegularExpressionValidator><br />
(Note: If no e-mail is specified the default e-mail "<%=EVI.BullsEye.BLL.ClientEmail.DefaultFromEmail(this.CurrentClientID) %>" will be used.)
</p>
<hr />
<p>
Subject: <asp:TextBox ID="subjectTextBox" runat="server" Text='<%# Bind("Subject") %>' Width="500px" /><br />
(Note: If no subject is specified the default subject "<%# EVI.BullsEye.BLL.ClientEmail.GetDefaultSubject((int)Eval("EmailTypeID")) %>" will be used.)
</p>
<hr />
<asp:Panel runat="server" ID="emailToPanel">
Send e-mails to (separate addresses with semicolon, example: "
[email protected];
[email protected]"): <br />
<asp:TextBox ID="sendEmailTextBox" Text='<%# Bind("EmailTo") %>' Width="600px" runat="server"></asp:TextBox>
</asp:Panel>
<asp:CheckBox ID="enabledCheckBox" runat="server" Checked='<%# Bind("Enabled") %>' />
<asp:MultiView ID="typeMultiView" runat="server">
<asp:View ID="webView" runat="server">
<%--Send this message to a lead when they have submitted a request.<br />--%>
Text to be replaced by information for each <%=CurrentClientTerms.Location.ToLower() %> this lead was routed to: [dealersInfo]<br />
Text to be replaced by information about all the categories the lead was interested in: [categoryInfo]
</asp:View>
<asp:View ID="uploadView" runat="server">
Text to be replaced by information for each <%=CurrentClientTerms.Location.ToLower() %> this lead was routed to: [dealersInfo]
</asp:View>
<asp:View ID="welcomeView" runat="server">
<span style="color:Gray">Send this message to a dealer when their login account has been set up.</span><br />
Text to be replaced by dealer's username: [username]<br />
Text to be replaced by dealer's password: [password]
</asp:View>
<asp:View ID="newLeadsView" runat="server">
Text to be replaced by the lead information: [leadInfo]<br />
Text to be replaced by the rep email address: [RepEmailAddress]<br />
<span style="color:Gray">Send this message to a dealer when a new lead has been assigned to them.</span>
</asp:View>
<asp:View ID="attentionView" runat="server">
Send this message to a dealer to remind them to follow up with their leads.<br />
Delinquency Period: <asp:TextBox ID="delinquencyTextBox" Text='<%# Bind("DelinquencyPeriod") %>' Width="50px" runat="server"></asp:TextBox> days<br />
<asp:RequiredFieldValidator ID="delinquencyRequiredValidator" runat="server" Display="dynamic" ControlToValidate="delinquencyTextBox"
ErrorMessage="Delinquency Period is required." EnableClientScript="false" />
<asp:RangeValidator ID="delinquencyRangeValidator" runat="server" MinimumValue="0" MaximumValue="32767" Type="Integer" Display="Dynamic"
ErrorMessage="Delinquency Period must be an integer greater than or equal to 0" ControlToValidate="delinquencyTextBox"
EnableClientScript="false">*</asp:RangeValidator>
Text to be replaced by the deliquency period, as a number: [delinquencyPeriod]<br />
Text to be replaced by the number of delinquent leads: [numberOfLeads]
</asp:View>
<asp:View ID="unassignedView" runat="server">
Send this message to designated personnel to inform them that there are unassigned leads present within the system.<br />
<asp:CustomValidator ID="sendEmailCustomValidator" runat="server" EnableClientScript="false" ControlToValidate="sendEmailTextBox"
Display="Dynamic" OnServerValidate="sendEmailCustomValidator_ServerValidate" ValidateEmptyText="true">*</asp:CustomValidator>
</asp:View>
</asp:MultiView>
<CE:Editor ID="contentEditor" runat="Server" Text='<%# Bind("EmailContent") %>'
SkinID="ThankYou" OnLoad="contentEditor_Load"></CE:Editor>
<%--UseRelativeLinks="false" RemoveServerNamesFromUrl="false" - replace with URLType? --%>
<p>
<asp:HyperLink ID="cancelHyperLink" runat="Server" Text="cancel" NavigateUrl="~/Admin/Setup/SystemSettings/Default.aspx" />
<asp:LinkButton ID="saveButton" runat="server" Text="save" CommandName="Update" />
</p>
</EditItemTemplate>
</asp:FormView>
<asp:ObjectDataSource ID="clientEmailDataSource" runat="server" SelectMethod="GetCustom" TypeName="EVI.BullsEye.BLL.ClientEmail" OldValuesParameterFormatString="{0}"
OnSelecting="clientEmailDataSource_Selecting" UpdateMethod="Save" OnUpdating="clientEmailDataSource_Updating" >
<SelectParameters>
<asp:ControlParameter ControlID="typeList" Name="id" PropertyName="SelectedValue"
Type="Int32" />
<asp:Parameter Name="emailFrom" Type="String" />
<asp:Parameter Name="emailTo" Type="String" />
<asp:Parameter Name="subject" Type="String" />
<asp:Parameter Name="enabled" Type="Boolean" />
<asp:Parameter Name="clientID" Type="Int32" />
<asp:Parameter Name="emailTypeID" Type="Int32" />
<asp:Parameter Name="delinquencyPeriod" Type="Int32" />
<asp:Parameter Name="dateCreated" Type="DateTime" />
<asp:Parameter Name="dateLastModified" Type="DateTime" />
<asp:Parameter Name="dateDeleted" Type="DateTime" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="id" Type="Int32" />
<asp:Parameter Name="emailFrom" Type="String" />
<asp:Parameter Name="emailTo" Type="String" />
<asp:Parameter Name="subject" Type="String" />
<asp:Parameter Name="emailContent" Type="String" />
<asp:Parameter Name="enabled" Type="Boolean" />
<asp:Parameter Name="clientID" Type="Int32" />
<asp:Parameter Name="emailTypeID" Type="Int32" />
<asp:Parameter Name="delinquencyPeriod" Type="Int32" />
</UpdateParameters>
</asp:ObjectDataSource>
</asp:Content>