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
Guest User
Tech Writer
2.1k
469.8k
System.ArgumentNullException: 'Value cannot be null. Parameter name: e
Aug 31 2020 4:56 AM
Hi Team
I need some help with this exception, value cannot be empty. This is what i have on my application;
// Model
public
class
eNtsaCourses
{
[Key]
public
Guid? Id {
get
;
set
; }
public
string
Course {
get
;
set
; }
public
string
Nickname {
get
;
set
; }
public
string
Term {
get
;
set
; }
public
string
EnrolledAs {
get
;
set
; }
public
bool
Published {
get
;
set
; }
}
// Controller
//GET://Courses/Courses-All.
[Route(
"Home/Courses"
)]
public
ActionResult Courses(RegCoursesViewModel eNtsaCourses)
{
if
(ModelState.IsValid)
{
cb.eNtsaCourse.Add(eNtsaCourses.Courses);
cb.SaveChanges();
//
This throws an exception here
}
return
View(eNtsaCourses);
}
[HttpPost]
public
JsonResult AddCoursesRegistration(
string
CourseName,
string
clientNo)
{
return
Json(
true
, JsonRequestBehavior.AllowGet);
}
Reply
Answers (
3
)
Cookie Conset displaying after page refreshes
I want to insert a value daily every after 3 minute in sql server 2012