📄 emailarticlepanel.ascx
字号:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="EmailArticlePanel.ascx.cs" Inherits="Interspire.ArticleLive.Web.Templates.DefaultFixed.Panels.EmailArticlePanel" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%@ Register TagPrefix="cc1" Namespace="Interspire.ArticleLive.Web" Assembly="Interspire.ArticleLive.Web" %>
<table class="Container" runat="server" id="FormTable">
<tr>
<td class="Heading" colspan="2"><%# String.Format(ResourceHelper.GetString("EmailCurrentArticleToFriend"), CurrentArticle.Title) %></td>
</tr>
<tr class="Intro"><td colSpan=2><cc1:MessageControl id="MessageControl1" runat="server"></cc1:MessageControl></td></tr>
<tr>
<td class="FieldLabel">
<span class="Required">*</span> <%# ResourceHelper.GetString("YourNameLabel") %></td>
<td>
<asp:TextBox id="YourName" runat="server" CssClass="Field400" Width="400px"></asp:TextBox>
<cc1:CustomRequiredFieldValidator id=YourNameReqVal runat="server" ErrorMessage='<%# ResourceHelper.GetString("YourNameRequired") %>' Display="None" ControlToValidate="YourName">
</cc1:CustomRequiredFieldValidator></td>
</tr>
<TR>
<TD class="FieldLabel"><span class="Required">*</span> <%# ResourceHelper.GetString("YourEmailLabel") %></TD>
<TD>
<asp:TextBox id="YourEmail" runat="server" CssClass="Field400" Width="400px"></asp:TextBox>
<cc1:CustomRequiredFieldValidator id=YourEmailReqVal runat="server" ErrorMessage='<%# ResourceHelper.GetString("YourEmailRequired") %>' Display="None" ControlToValidate="YourEmail">
</cc1:CustomRequiredFieldValidator><cc1:CustomRegularExpressionValidator id=YourEmailRegExpVal runat="server" ErrorMessage='<%# ResourceHelper.GetString("YourEmailInvalid") %>' ControlToValidate="YourEmail" Display="None" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></cc1:CustomRegularExpressionValidator></TD>
</TR>
<TR>
<TD class="FieldLabel"><span class="Required">*</span> <%# ResourceHelper.GetString("FriendsNameLabel") %></TD>
<TD>
<asp:TextBox id="FriendsName" runat="server" CssClass="Field400" Width="400px"></asp:TextBox>
<cc1:CustomRequiredFieldValidator id=FriendsNameReqVal runat="server" ErrorMessage='<%# ResourceHelper.GetString("FriendsNameRequired") %>' Display="None" ControlToValidate="FriendsName">
</cc1:CustomRequiredFieldValidator></TD>
</TR>
<TR>
<TD class="FieldLabel"><span class="Required">*</span> <%# ResourceHelper.GetString("FriendsEmailLabel") %></TD>
<TD>
<asp:TextBox id="FriendsEmail" runat="server" CssClass="Field400" Width="400px"></asp:TextBox>
<cc1:CustomRequiredFieldValidator id=FriendsEmailReqVal runat="server" ErrorMessage='<%# ResourceHelper.GetString("FriendsEmailRequired") %>' Display="None" ControlToValidate="FriendsEmail">
</cc1:CustomRequiredFieldValidator><cc1:CustomRegularExpressionValidator id=FriendsEmailRegExpVal runat="server" ErrorMessage='<%# ResourceHelper.GetString("FriendsEmailInvalid") %>' ControlToValidate="FriendsEmail" Display="None" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></cc1:CustomRegularExpressionValidator></TD>
</TR>
<TR>
<TD class="FieldLabel"> <%# ResourceHelper.GetString("MessageLabel") %></TD>
<TD><asp:TextBox Runat=server Enabled=False TextMode=MultiLine Text='<%# Message %>' id=TextBox1 CssClass="Field400" Width="400px" Height="300px" Rows="18"></asp:TextBox></TD>
</TR>
<TR>
<TD class="FieldLabel"></TD>
<TD>
<asp:Button id="SendButton" runat="server" CssClass="FormButton" Text="Send"></asp:Button><cc1:ValidationAlerter id="ValidationAlerter1" runat="server"></cc1:ValidationAlerter></TD>
</TR>
</table>
<table runat="server" id="SuccessTable" class="Container" visible="false">
<tr><td class="Heading"><%= ResourceHelper.GetString("EmailSent") %></td></tr>
<tr><td><cc1:MessageControl id="Messagecontrol2" runat="server"></cc1:MessageControl></td></tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -