62,271
社区成员
发帖
与我相关
我的任务
分享
<%@ Page Language="C#" Debug="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if (Request.RequestType == "POST")
{
Response.Write(Request.Form["Title"]);
}
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
</head>
<body>
<table>
<form action="?action=post" method="post">
<tr>
<td class="wid1">
<font color="#FF0000">*</font>主题:
</td>
<td class="wid2">
<input type="text" name="Title" id="Title" value="abcdefg.." />
</td>
</tr>
<tr>
<td>
<font color="#FF0000">*</font>内容:
</td>
<td>
<textarea name="Content" id="Content" rows="5" cols="35"></textarea>
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" value="submit" />
</td>
</tr>
</form>
</table>
<p>
</p>
</body>
</html>