I am using LINQ and sending a linq object to the view and trying to show it in a textbox like this
<%=Html.TextBox("petname",Model.PetName) %>
But I am getting error, please suggest how can I show (PetRecord.PetName) which is my linq entity
Thanks
Raj
What does your
Inheritsproperty look like:It should inherit whatever model you’re sending to the view:
And you should be sending the following to your view from the controller: