Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 78072

Enum DropDownList selected problem

$
0
0

They are two different views, I try to modify codes as similar  as problem code, but it still works correctly.

And I also solved my problem , to add ModelState.Clear() in controller.

//To get data from database with Primary Key
//model and td, both are the same class TimeDepositInt
publicActionResult Detail(TimeDepositInt td)
{
  var model = svc.GetTimeDepositInt(td.PortfolioID,td.TransNo,td.InterestType,td.SettleDate);
  ModelState.Clear();
  returnPartialView(model);
}

But I am still confused that.

 


Viewing all articles
Browse latest Browse all 78072

Trending Articles