create view to display data
public ActionResult UsingAjax()
{
int userID = Convert.ToInt32(Session["User_ID"]);
List
return View(accountDetails);
}
then have the view to display accountname dropdown
@model IEnumerable
<body style="background-color:#FFF3E8;">
Passing Multiple Models using PartialView
Select a Course |
Check account with details information
Create partial view also
@model IEnumerable
Account ID | Faculty Name | Account Balance | Country |
---|---|---|---|
@item.AccountID | @item.AccountName | @item.Balance | @item.Country |
and Call the AccountDEtailtable methos in you control
public ActionResult AccountDetailTable(string AccountName)
{
int userID = Convert.ToInt32(Session["User_ID"]);
var account = db.Account.Where(x => x.LoginID == userID && x.AccountName == AccountName).ToList();
return PartialView("AccountDetailsPV", account);
}
No comments:
Post a Comment