KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there anything wrong with this html? I want to have a link in the masterpage to navigate to "CreateParts" view. I have action 'CreateParts' which have a parameter parentPartId in the controller 'PartList'. <li id="taskAdminPartCreate" runat="server"> <%= Html.ActionLink("Create New Part", "CreateParts", "PartList", new { parentPartId = 0 })%></li> My controller action is like public ActionResult CreateParts(int parentPartId) { HSPartList objHSPart = new HSPartList(); objHSPart.Id = parentPartId; return View(objHSPart); } When I click on 'Create New Part' in the menu in SiteMaster, I get exception. Please help me out of this.
Tags (comma-separated)
Save Edits
Cancel