"
ASP.NET (snapshot 2017) Microsoft documentation and samples

[!INCLUDEadding-model]

You can quickly rename the searchString parameter to id with the rename command. Right click on searchString > Rename.

Contextual menu
Contextual menu

The rename targets are highlighted.

Code editor showing the variable highlighted throughout the Index ActionResult method
Code editor showing the variable highlighted throughout the Index ActionResult method

Change the parameter to id and all occurrences of searchString change to id.

Code editor showing the variable has been changed to id
Code editor showing the variable has been changed to id

[!INCLUDEadding-model]

Notice how intelliSense helps us update the markup.

Intellisense contextual menu with method selected in the list of attributes for the form element
Intellisense contextual menu with method selected in the list of attributes for the form element
Intellisense contextual menu with get selected in the list of method attribute values
Intellisense contextual menu with get selected in the list of method attribute values

Notice the distinctive font in the <form> tag. That distinctive font indicates the tag is supported by Tag Helpers.

form tag with purple text
form tag with purple text

[!INCLUDEadding-model]

Previous Next



Comments ( )
Link to this page: //www.vb-net.com/AspNet-DocAndSamples-2017/aspnetcore/tutorials/first-mvc-app/search.htm
< THANKS ME>