contact.ascx

来自「基于.Net环境下c#实现的国人自己的Blog平台,基于.Text的核心技术,但」· ASCX 代码 · 共 36 行

ASCX
36
字号
<%@ Control Language="c#" AutoEventWireup="false" Inherits="Dottext.Web.UI.Controls.Contact" %>

<P>Please&nbsp;use the form below if you have any comments, questions, or 
	suggestions.</P>
<TABLE cellSpacing="1" cellPadding="1" border="0">
	<TR>
		<TD><STRONG>Name</STRONG></TD>
		<TD>
			<asp:TextBox id="tbName" Size = "50" runat="server" Width="400px"></asp:TextBox></TD>
	</TR>
	<TR>
		<TD><STRONG>Email:</STRONG></TD>
		<TD>
			<asp:TextBox id="tbEmail" runat="server" Size = "50" Width="400px"></asp:TextBox>
			<asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ErrorMessage="Please enter your email address" ControlToValidate="tbEmail" Display="Dynamic">*</asp:RequiredFieldValidator>
			<asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ErrorMessage="Invalid email address format" ControlToValidate="tbEmail" Display="Dynamic" ValidationExpression="^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$">*</asp:RegularExpressionValidator></TD>
	</TR>
	<TR>
		<TD><STRONG>Subject:</STRONG></TD>
		<TD>
			<asp:TextBox id="tbSubject" runat="server" Size = "50" Width="400px"></asp:TextBox></TD>
	</TR>
	<TR>
		<TD><STRONG>Message</STRONG></TD>
		<TD>
			<asp:TextBox id="tbMessage" runat="server" Rows = "10" Columns = "40" Width="400px" TextMode="MultiLine" Height="131px"></asp:TextBox>
			<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="Please tell me something" ControlToValidate="tbMessage" Display="Dynamic">*</asp:RequiredFieldValidator></TD>
	</TR>
	<TR>
		<TD>
			<asp:Button id="btnSend" runat="server" Text="Send"></asp:Button></TD>
		<TD>
			<asp:Label id="lblMessage" runat="server" ForeColor="Red"></asp:Label>
			<asp:ValidationSummary id="ValidationSummary1" runat="server" HeaderText="There is an error:"></asp:ValidationSummary></TD>
	</TR>
</TABLE>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?