Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 834 Bytes

06-BindingFromRouteParameters.md

File metadata and controls

27 lines (16 loc) · 834 Bytes

Binding Data from the Route Parameters

For this activity, please ensure you have completed Activity 5 and have your solution open in Visual Studio 2017.

What's the plan?

We're going to explore binding data from route parameters.

Activity Steps

  1. Update the route attribute to include an optional route parameter.
[Route("{name?}")]
  1. Run the application by pressing F5.
  2. Add a suffix to the path of the URL to pass your name which will be bound to the action argument. e.g. '/Steve'.
  3. Press Enter to navigate to the updated URL.

End of Activity

The completed example for this activity can be found in the '/steps/06-Binding-From-Route-Parameters' folder.

Continue to Activity 7.

Return to README and activity links