"
 
 
 
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 ( )
<00>  <01>  <02>  <03>  <04>  <05>  <06>  <07>  <08>  <09>  <10>  <11>  <12>  <13>  <14>  <15>  <16>  <17>  <18>  <19>  <20>  <21>  <22>  <23
Link to this page: //www.vb-net.com/AspNet-DocAndSamples-2017/aspnetcore/tutorials/first-mvc-app/search.htm
<SITEMAP>  <MVC>  <ASP>  <NET>  <DATA>  <KIOSK>  <FLEX>  <SQL>  <NOTES>  <LINUX>  <MONO>  <FREEWARE>  <DOCS>  <ENG>  <CHAT ME>  <ABOUT ME>  < THANKS ME>