public class Equation { public int a{get; set;} public int b{get; set;} public Awn = a+b; var Rand = new Random((int)DateTime.Now.Ticks); int a = rand.Next(10, 99); int b = rand.Next(0, 9); var equations = string.Format("{0} + {1} = {}", a, b); }
public ActionResult Index() { return View();
@using (Html.BeginForm()) { @Html.LabelFor(model=>model.equations) { <div class="row"> <input type="submit" value="Yes"/> <input type="submit" value="No"/> </div> }
Equation
a
b
Awn
{}
[HttpPost]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)