视图1 - 只需输入参数
<p> Enter Year: @Html.TextBox("Year")</p>
<p> Enter Quarter: @Html.TextBox("Qtr")</p>
<p> Enter Division: @Html.TextBox("Div")</p>
<p><input id="Submit" type="button" value="button" /></p>
Run Code Online (Sandbox Code Playgroud)视图控制器2
namespace BSIntranet.Controllers
{
public class DivisionIncomeController : Controller
{
private ProjectionsEntities db = new ProjectionsEntities();
// GET: DivisionIncome
public ActionResult Index()
{
return View(db.JobRecaps.ToList());
}
}
}
Run Code Online (Sandbox Code Playgroud)我不知道在这里开始是什么或如何开始.谢谢你的帮助!!
编辑 使用系统; 使用System.Collections.Generic;
public partial class JobRecap
{
public int ID { get; set; }
public string Job_ID { get; set; }
public int Year …Run Code Online (Sandbox Code Playgroud)