Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 806 Bytes

File metadata and controls

21 lines (14 loc) · 806 Bytes

Lab 07 - HTML and Tag Helpers

Prerequisites: creating the Entity Framework context from Lab 6

Use HTML Helpers

  1. Create action methods to edit the entity from previous labs for GET and POST requests
  2. Create a view using HTML Helpers to display a form to enter required input data for the entity
  3. With a POST request, write the model data to the database - using a repository
  4. After the data was sucessfully written, show a result message

Create a custom HTML Helper

  1. Create a custom HTML helper to change a string
  2. Use the custom HTML helper

Use Tag Helpers

  1. Create an alternative view to edit the model data using Tag Helpers instead of HTML Helpers
  2. Use the environment tag to differ between develop and production environments
  3. Create and use a custom tag helper