TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dr.Ajay Kashyap
NA
521
284.1k
How to Clear Model Property value in mvc
Dec 20 2016 6:52 AM
i want to clear the value of categoryid when redirect to the page
Model:-
public class AddBusinessLocationViewModel
{
public Nullable<int> City_Id { get; set; }
public Nullable<int> CityArea_Id { get; set; }
public Nullable<int> state_id { get; set; }
public string OpenTime { get; set; }
public List<int> CategoryId { get; set; }
}
Controller:-
{
ModelState.Clear(); //this will clear all value
return View(BVM);
}
Reply
Answers (
7
)
Kill SQL Server Sleeping Connections
how to get twitter data like ,share , count etc