赞
踩
表单是 HTML 文档中放置输入控件(文本框、复选框、单选按钮、下拉列表)的部分。
<html>
<body>
@{
if (IsPost) {
string companyname = Request["companyname"];
string contactname = Request["contactname"];
<p>You entered: <br />
Company Name: @companyname <br />
Contact Name: @contactname </p>
}
else
{
<form method="post" action="">
Company Name:<br />
<input type="text" name="CompanyName" value="" /><br />
Contact Name:<br />
<input type="text" name="ContactName" value="" /><br /><br />
<input type="submit" value="Submit" class="submit" />
</form>
}
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。