标签:mail mit NPU you tac 内容 net body doc
<!DOCTYPE html><html> <body> br/>@{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><br><input type="text" name="ContactName" value=""><br><br><input type="submit" value="Submit" class="submit"></form> }} </body> </html>
ASP.NET Razor简单的表单提交处理的代码
原文地址:http://blog.51cto.com/14122754/2329718