Click here to Skip to main content
15,922,533 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionInstall-Package : NU1202: Package Microsoft.AspNet.Identity.Core 2.2.1 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586) / win10-x64. Package Microsoft.AspNet.Identity.Core 2.2.1 supports: net45 Pin
indian14317-Apr-18 8:34
indian14317-Apr-18 8:34 
QuestionEntity Framework Question - code first mixed with database first Pin
ZurdoDev17-Apr-18 3:19
professionalZurdoDev17-Apr-18 3:19 
QuestionNeed Code references for .net core 2.O MVC Pin
SP Maurya12-Apr-18 21:41
SP Maurya12-Apr-18 21:41 
QuestionRe: Need Code refernces for .net core 2.O MVC Pin
Richard MacCutchan12-Apr-18 22:22
mveRichard MacCutchan12-Apr-18 22:22 
AnswerRe: Need Code refernces for .net core 2.O MVC Pin
SP Maurya12-Apr-18 22:59
SP Maurya12-Apr-18 22:59 
GeneralRe: Need Code refernces for .net core 2.O MVC Pin
Richard MacCutchan12-Apr-18 23:00
mveRichard MacCutchan12-Apr-18 23:00 
GeneralRe: Need Code refernces for .net core 2.O MVC Pin
SP Maurya12-Apr-18 23:15
SP Maurya12-Apr-18 23:15 
GeneralRe: Need Code refernces for .net core 2.O MVC Pin
Richard MacCutchan13-Apr-18 1:02
mveRichard MacCutchan13-Apr-18 1:02 
GeneralRe: Need Code refernces for .net core 2.O MVC Pin
SP Maurya13-Apr-18 2:33
SP Maurya13-Apr-18 2:33 
QuestionInfopath conversion Pin
S Douglas12-Apr-18 4:59
professionalS Douglas12-Apr-18 4:59 
QuestionWhich one is the best generic or concrete repository & why ? Pin
Dinesh Singh Kushwaha (Dev)6-Apr-18 23:31
Dinesh Singh Kushwaha (Dev)6-Apr-18 23:31 
AnswerRe: Which one is the best generic or concrete repository & why ? Pin
Richard MacCutchan7-Apr-18 3:11
mveRichard MacCutchan7-Apr-18 3:11 
Questionaction request that doesn't match route attr, catch and redirect to error page Pin
jkirkerx5-Apr-18 9:41
professionaljkirkerx5-Apr-18 9:41 
AnswerWhen route constraints fail [solved] Pin
jkirkerx5-Apr-18 9:57
professionaljkirkerx5-Apr-18 9:57 
Questionwhat is Uniform Interface in REST Pin
Mou_kol5-Apr-18 2:55
Mou_kol5-Apr-18 2:55 
QuestionAsp.Net MVC Pin
Ankit Bopche28-Mar-18 5:42
Ankit Bopche28-Mar-18 5:42 
"Object reference not set to an instance of an object."

Hello Friends, i want suggestions for this problem. In ASP.net MVC am Using entity framework and trying to get a list of employees using the model class itself generated by system,now its showing me this error, how to handle it please suggest.


//Here is my index.cshtml code.

@model IEnumerable


@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}

Index


@Html.ActionLink("Create New", "Create")




@Html.DisplayNameFor(model => model.EmpName)


@Html.DisplayNameFor(model => model.Designation)


@Html.DisplayNameFor(model => model.Salary)


@Html.DisplayNameFor(model => model.Email)


@Html.DisplayNameFor(model => model.Mobile)


@Html.DisplayNameFor(model => model.Qualification)


@Html.DisplayNameFor(model => model.Manager)




@foreach (var item in Model) {



@Html.DisplayFor(modelItem => item.EmpName)


@Html.DisplayFor(modelItem => item.Designation)


@Html.DisplayFor(modelItem => item.Salary)


@Html.DisplayFor(modelItem => item.Email)


@Html.DisplayFor(modelItem => item.Mobile)


@Html.DisplayFor(modelItem => item.Qualification)


@Html.DisplayFor(modelItem => item.Manager)


@Html.ActionLink("Edit", "Edit", new { id=item.Eid }) |
@Html.ActionLink("Details", "Details", new { id=item.Eid }) |
@Html.ActionLink("Delete", "Delete", new { id=item.Eid })


}
AnswerRe: Asp.Net MVC Pin
Richard Deeming28-Mar-18 8:01
mveRichard Deeming28-Mar-18 8:01 
GeneralRe: Asp.Net MVC Pin
Ankit Bopche28-Mar-18 8:25
Ankit Bopche28-Mar-18 8:25 
GeneralRe: Asp.Net MVC Pin
Ankit Bopche28-Mar-18 8:34
Ankit Bopche28-Mar-18 8:34 
GeneralRe: Asp.Net MVC Pin
Richard Deeming28-Mar-18 9:05
mveRichard Deeming28-Mar-18 9:05 
QuestionEnable Image Zoom only Pin
sunsher28-Mar-18 3:24
sunsher28-Mar-18 3:24 
AnswerRe: Enable Image Zoom only Pin
User 418025431-Mar-18 15:20
User 418025431-Mar-18 15:20 
QuestionHttpCookie vs Cookie, and multi-value HttpCookie Pin
jkirkerx25-Mar-18 12:55
professionaljkirkerx25-Mar-18 12:55 
AnswerRe: HttpCookie vs Cookie, and multi-value HttpCookie Pin
Richard Deeming26-Mar-18 8:37
mveRichard Deeming26-Mar-18 8:37 
GeneralRe: HttpCookie vs Cookie, and multi-value HttpCookie Pin
jkirkerx5-Apr-18 12:24
professionaljkirkerx5-Apr-18 12:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.