1

how to fix Object reference not set to an instance of an object mvc4 I am receiving null id, In my DB my id is not null please i need help

I have used the breakpoints and its receiving the null id at the following code:- enter image description here

Anastasios Selmani
  • 3,579
  • 3
  • 32
  • 48
Khizar Nayyar
  • 378
  • 1
  • 14
  • You've either passed the model as a null or the Id has not been populated (what type is it)? We'd need to see how the model is populated to help much more - please though post your code not screen shots in questions. Cheers! – d219 Dec 07 '18 at 16:59
  • Thanks. I got it right by passing it value directly from table. – Khizar Nayyar Dec 14 '18 at 19:03

0 Answers0