Controllers in MVC View to the way data transfer

Mori from the Science and Technology official blog
http://www.cnsendblog.com/index.php/?p=151
the GPS platform, site construction, software development, system operation and maintenance, to find a large forest network technology!
http://cnsendnet.taobao.com

1, the value of an html element (e.g., text boxes) is transmitted Controllers. As shown below, the element is set reportDate name, then Controllers, the name argument must also be reportDate
Controllers in MVC View to the way data transfer
Controllers in MVC View to the way data transfer
Controllers in MVC View to the way data transfer
shown below, the string argument types can be changed. If DateTime, it may be the date string distal automatically converted to date type
Controllers in MVC View to the way data transfer
2, if it is a table page, you can transmit a set of data (List data) to the Controllers, the specified name in each element of the front end for List2 [ 0] .ProjectID, then the MVC in the background can be automatically assembled into a List collection, pay attention to the background of the argument name must be consistent
Controllers in MVC View to the way data transfer
in fact, two arguments can be swapped positions
Controllers in MVC View to the way data transfer
Controllers in MVC View to the way data transfer
3, single-table add / delete pages, using the model carried pass value
Controllers in MVC View to the way data transfer
Controllers in MVC View to the way data transfer

Guess you like

Origin blog.51cto.com/14036626/2458142