Update for 25-02-22 12:00
This commit is contained in:
parent
f056ca49e2
commit
511759dd0b
@ -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
|
||||
|
@ -68,6 +68,6 @@ public class FooEnumerator : IEnumerator<string>
|
||||
return "some val";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}}}
|
||||
|
Loading…
Reference in New Issue
Block a user