im having problem going correct link. when im trying go index view in template folder goes index view in admin folder instead , cant understand why when code says should view in specific folder:
<fieldset> <legend>siteconfig</legend> <p>create new or edit customers, projects etc: @html.actionlink("create", "add", "admin", string.empty) | @html.actionlink("edit", "addedit", "admin", string.empty) </p> <p>create new or edit users: @html.actionlink("create", "add", "admin", string.empty) | @html.actionlink("edit", "addedit", "admin", string.empty) </p> <p>upload or change logo: @html.actionlink("upload", "add", "admin", string.empty) | @html.actionlink("change", "addedit", "admin", string.empty) </p> <p>upload or change template: @html.actionlink("upload", "index", "template", string.empty) | @html.actionlink("change", "addedit", "admin", string.empty) </p> </fieldset>
you calling wrong overload. string.empty for?
is admin controller , if can simple a
@html.actionlink("create", "add", "admin") are trying add html styling links, this
@html.actionlink("create", "add", "admin", new { @class = "some-class-name"} ) are trying pass parameters
@html.actionlink("create", "add", "admin", new { @id = 5}, null )
Comments
Post a Comment