[HttpPost] public ActionResult Index(Account account) { string accountId; /* Here is the code to create account using Linq, */ account.AccountId = accountId; return View("Index", account); }
@Html.TextBoxFor(x => x.AccountId);
@Html.DisplayFor(x => x.AccountId)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)