✅ NullReferenceException for a array of bytes (image)
hey everybody i'm new to ASP.NET i was doing a small ecommerce project and i want to add a default picture for the product if not exists but i keep getting null error on the if statement that checks if its null.
here is a picture of the error keeps appearing in visual studio
9 Replies
Model
is nullwell i'm trying to create a new product (which is the model used for this page)
and here is my Product class
ProductsController class
You need to provide a model instance to the view
can you tell me how to do it please as i said i'm new to asp.net
Should do the trick
Ye it did thank you
i have another thing i need help with should i open another post for it ?@canton7@Kouhai
Yes
$close
If you have no further questions, please use /close to mark the forum thread as answered