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
Karan Thakkar
1.5k
204
90.6k
how to handle null values of models in mvc?
Jun 3 2019 7:35 AM
I am having a view in that I search student details and bind it in partail view.
In partail view data is bind through a Model.
Model is empty when page load that's why its thorws null refernce error on page load.
So on pagle load my model is null.
I am calling partial view pop up through jquery ajax.
So how to assign some deafults values to that model so ot doesn;t throw error
Reply
Answers (
5
)
OnSelectedIndexChanged Event is not fire
Membership.Getuser returns null