i want to clear the value of categoryid when redirect to the page
Model:-
public class AddBusinessLocationViewModel
{
public Nullable City_Id { get; set; }
public Nullable CityArea_Id { get; set; }
public Nullable state_id { get; set; }
public string OpenTime { get; set; }
public List CategoryId { get; set; }
}
Controller:-
{
ModelState.Clear(); //this will clear all value
return View(BVM);
}

Mangesh GRank #294 · 8.6K reputationPosted Dec 20, 2016, 2:20 AM EST
Dr.Ajay KashyapRank #2,900 · 496 reputationPosted Dec 20, 2016, 2:25 AM EST
Mangesh GRank #294 · 8.6K reputationPosted Dec 20, 2016, 2:53 AM EST
Dr.Ajay KashyapRank #2,900 · 496 reputationPosted Dec 20, 2016, 3:07 AM EST
Mangesh GRank #294 · 8.6K reputationPosted Dec 20, 2016, 3:30 AM EST
MayankRank #4,018 · 371 reputationPosted Dec 22, 2016, 12:29 AM EST
Nigel FernandesRank #753 · 3.1K reputationPosted Dec 22, 2016, 3:43 PM EST