This article is a mirror article of machine translation, please click here to jump to the original article.

View: 25734|Reply: 0

[Source] asp.net mvc BindAttribute binding feature

[Copy link]
Posted on 11/2/2017 9:48:42 AM | | | |




We have a ShareAppMessage class with the following code:



We just want to accept the Id and Title attributes in the ShareAppMessage class that we post

The code is as follows:



As for the use of the Bind feature Prefix, Prefix is suitable for complex classes, and after specifying a prefix using the Bind feature, the name attribute of the form element that needs to be submitted must have that prefix before it can be bound.




Previous:Is the CC stress test software released on this site really useful?
Next:mvc ajax with AntiForgeryToken to prevent CSRF attacks
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com