liveBook · Manning

Name attribute

The HTML name attribute assigns the name used to identify a form control and its submitted value.

How 2 Manning books explain it

Pro ASP.NET Core 7, Tenth Edition

An HTML attribute that supplies the name used to identify an element's submitted value and bind it to request data.

How it is used
Uses form input names as keys that ASP.NET Core model binding matches to handler parameters, properties, and arrays.
How deep it goes
Works through explicit overrides, nested prefixes, and array indexes; does not explain model binder internals.
Examples
Tests a Razor Page form at /pages/form and array inputs at /pages/bindings.
What you can do after
Operate/configure ASP.NET Core form binding by choosing input names or a Bind prefix that matches the receiving data.

Read how Pro ASP.NET Core 7, Tenth Edition explains name attribute →

Build a Website with ChatGPT

The HTML name attribute assigns the field name used to identify a form control when its form is submitted.

How it is used
Identifies form-control fields when a browser submits an HTML form.
How deep it goes
Explains the submission role with field examples and distinguishes names from selected value attributes.
Examples
Uses event sign-up fields named name, email, skills, day, gift, and notify, plus a hidden _gotcha field.
What you can do after
Apply it by preserving meaningful name values so submitted form data identifies each control correctly.

Read how Build a Website with ChatGPT explains name attribute →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.