Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /Home/Input
Imports Mvc4test.Customer Namespace Mvc4test Public Class CustomerController Inherits System.Web.Mvc.Controller ' ' GET: /Customer Function Index() As ActionResult Return View() End Function Function Output() As ActionResult Dim Cust1 As Customer = New Customer() Cust1.ID = Convert.ToInt32(Request.Form("id")) Cust1.Code = Request.Form("code") Cust1.Amt = Convert.ToDouble(Request.Form("amt")) Return View() End Function Function Input() As ActionResult Dim Cust0 As Customer = New Customer() Cust0.ID = Convert.ToInt32(Request.Form("id")) Cust0.Code = Request.Form("code") Cust0.Amt = Convert.ToDouble(Request.Form("amt")) Return View() End Function End Class End Namespace
@ModelType Mvc4test.Customer @Code ViewData("Title") = "Input" End Code <center><h2>Input</h2></center> <center><table><tr><td><br /><br /><br /> <h5>Customer ID#</h5></td></tr><tr><td> @Html.TextBox("id")</td></tr><tr><td><br /> <h5>Customer Code</h5></td></tr><tr><td> @Html.TextBox("code")</td></tr><tr><td><br /> <h5>Amount</h5></td></tr><tr><td> @Html.TextBox("amt")</td></tr><tr><td><br /><br /> <input type="submit" value="Input Customer Data" /> </td></tr></table></center>
@ModelType Mvc4test.Customer @Code ViewData("Title") = "View1" End Code <h2>View1</h2> <div> ID: @Html.TextBox("id")<br /> Code: @Html.TextBox("code")<br /> Amount: @Html.TextBox("amt")<br /> <% if (Model.Amt > 100) { %> Priveleged Customer <% } else { %> Normal Customer <%} %> </div>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)