开发者

Error in the view page when I am doing updating the product

I am getting an error when I am upadting the product ,the error is coming in the view page .it is "Object reference is not set to an instance of开发者_开发百科 an object". Please tell me why is the error coming.

category_id: <%= Html.TextBox("category_id", Model.category_id ) %> <%= Html.ValidationMessage("category_id", "*") %>

Thankx in advance Ritz


What product are you referring to? You need to provide more details, along with the code sample that is leading to the problem

Mainly it occurs because you would referencing an object for which an instance has not been set.

For example:

object obj = null;
obj.GetHashCode(); // will result in a object reference not set exception
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜