基本的 HTML 表單
c# 實例
基本的 html 表單
<!doctype 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><br>
<input type="text" name="contactname" value=""><br><br>
<input type="submit" value="submit" class="submit">
</form>
}
}
</body>
</html>
相關文章
- ASP.NET Web Pages WebMail 參考手冊
- ASP.NET MVC Web 應用程序
- ASP.NET MVC 控制器
- ASP.NET MVC 數據庫
- ASP.NET Web 頁面
- ASP.NET Web 表單
- ASP.NET ViewState
- ASP.NET ListItem 控件
- ASP.NET Panel 控件
- ASP.NET BulletedList 控件
- WebSecurity CreateUserAndAccount 方法
- HTML Image 2
- HTML InputRadiobutton
- HTML Textarea
- ASP.NET HTML 控件 Image
- ASP.NET HTML 控件 Repeater
- ASP.NET HTML 控件 用 重復
- ASP.NET HTML 控件 RangeValidator 2
- ASP.NET HTML 控件 RegularExpressionValidator
- ASP.NET HTML 控件 Validationsummary 2