前台代码
<%
@
Page
Language
="C#"
AutoEventWireup
="true"
CodeFile
="Default.aspx.cs"
Inherits
="_Default"
%>
<!
DOCTYPE
html
PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html
xmlns
="http://www.w3.org/1999/xhtml"
>
<
head
runat
="server">
<
title
>
无标题页
</
title
>
</
head
>
<
body
>
<
form
id
="form1"
runat
="server">
<
div
>
<
table
style
="width: 658px; border-right: #9900ff thin double; border-top: #9900ff
thin double; border-left: #9900ff thin double; border-bottom: #9900ff thin double;">
<
tr
>
<
td
style
="width: 461px">
新闻标题:
</
td
>
<
td
style
="width: 19px">
<
asp
:
TextBox
ID
="TextBox1"
runat
="server"
Width
="523px"></
asp
:
TextBox
></
td
>
<
td
style
="width: 47px">
<
asp
:
RequiredFieldValidator
ID
="RequiredFieldValidator1"
runat
="server"
ControlToValidate
="TextBox1"
ErrorMessage
="*"></
asp
:
RequiredFieldValidator
></
td
>
</
tr
>
<
tr
>
<
td
style
="width: 461px">
新闻内容:
</
td
>
<
td
style
="width: 19px">
<
asp
:
TextBox
ID
="TextBox2"
runat
="server"
Height
="252px"
TextMode
="MultiLine"
Width
="523px"></
asp
:
TextBox
></
td
>
<
td
style
="width: 47px">
<
asp
:
RequiredFieldValidator
ID
="RequiredFieldValidator2"
runat
="server"
ControlToValidate
="TextBox2"
ErrorMessage
="*"></
asp
:
RequiredFieldValidator
></
td
>
</
tr
>
<
tr
>
<
td
style
="width: 461px">
作者:
</
td
>
<
td
colspan
="2">
<
asp
:
TextBox
ID
="TextBox3"
runat
="server"></
asp
:
TextBox
>