📄 maintougao.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="maintougao.aspx.cs" Inherits="maintougao" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table align="center" border="0" cellspacing="0" width="463">
<tr>
<td>
<img height="70" src="img/xz_tg_lj_001.gif" width="200" /><img height="70" src="img/xz_tg_lj_002.gif"
width="420" /></td>
</tr>
</table>
<table align="center" border="0" width="100%" style="font-size: 12px">
<tr>
<td style="width: 151px">
<div align="left">
<span class="style1">标题:</span></div>
</td>
<td align="left" style="width: 631px">
<asp:TextBox ID="txttittle" runat="server" MaxLength="100" Width="470px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txttittle"
Display="Dynamic" ErrorMessage="标题空"></asp:RequiredFieldValidator></td>
</tr>
<tr style="color: #000000">
<td class="style1" style="width: 151px">
<div align="left">
Emal:</div>
</td>
<td style="width: 631px">
<asp:TextBox ID="txtemal" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtemal"
Display="Dynamic" ErrorMessage="邮件空"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtemal"
Display="Dynamic" ErrorMessage="格式错误" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
</tr>
<tr style="color: #000000">
<td class="style1" style="width: 151px">
<div align="left">
类别:</div>
</td>
<td style="width: 631px">
<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1"
DataTextField="Class_name" DataValueField="Class_name" Width="108px">
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="DropDownList1"
Display="Dynamic" ErrorMessage="类别空"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td class="style1" style="width: 151px; height: 42px">
<div align="left">
<span style="color: #000000">说明:</span></div>
</td>
<td style="width: 631px; color: #0000ff; height: 42px; text-decoration: underline">
<asp:TextBox ID="txtmiaoshu" runat="server" Height="147px" TextMode="MultiLine" Width="488px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtmiaoshu"
Display="Dynamic" ErrorMessage="描述空"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td class="" style="width: 151px; height: 35px">
<div align="left">
上传稿件:</div>
</td>
<td style="width: 631px; color: #0000ff; height: 35px">
<span style="color: #0000ff"> <asp:FileUpload ID="FileUpload1" runat="server" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="FileUpload1"
Display="Dynamic" ErrorMessage="文件空"></asp:RequiredFieldValidator></span></td>
</tr>
<tr>
<td align="center" colspan="2" style="background-image: url(img/bg.gif); height: 18px">
<asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" Width="96px">提交</asp:LinkButton></td>
</tr>
</table>
<p>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:fileConnectionString %>"
SelectCommand="SELECT * FROM [Class]"></asp:SqlDataSource>
</p>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -