Update for 25-02-22 12:00

This commit is contained in:
Tyler Perkins 2022-02-25 12:00:01 -05:00
parent f056ca49e2
commit 511759dd0b
2 changed files with 14 additions and 1 deletions

View File

@ -84,6 +84,19 @@ recomended often.
=== ActionLink ===
The `@Html.ActionLink()` function can be placed inside of a `<form>` block in a
cshtml page. The arguments are as follows
{{{
@Html.ActionLink("Text Seen on page",
"Controller",
"Action Method",
new { URLPARAMNAME = 1 }, null)
}}}
Action Links are prefered, as then links do not need to be hardcoded into the
application.
=== Passing data to views ===
A view can take paramaters, primarily a single object, via passing it to the

View File

@ -68,6 +68,6 @@ public class FooEnumerator : IEnumerator<string>
return "some val";
}
}
}
}}}