ASP. net mvc adopts two methods for passing parameters by URL address: asp. netmvc
I. First method of parameter passing through url addresses
1. Use the default url address format in mvc: Controller/method name/Parameter
2. instance:Http: // localhost: 39270/RequestDemo/Index/88The default parameter is id.
If other names are used, an error is returned if the backend cannot be read.
Ii. method 2 for passing parameters through url addresses
1. Use? Add parameter name = parameter value. If multiple parameters are connected using &
Http: // localhost: 39270/RequestDemo/Index? Id = 88 & name = % E5 % BC % A0 % E4 % B8 % 89
2. Method for receiving parameters in the background
The above is a small series of ASP. in net mvc, the two methods for passing parameters through URL addresses are helpful. If you have any questions, please leave a message and the editor will reply to you in time. Thank you very much for your support for the help House website!