ASP Net MVC, use textbox and select all

 

To display a series of textbox in table, can use following code

 

Code

 

In order to get the ID which boxes are checked, it need use same "name" property.In this case, the name is "CB".  And then in Action, just use

 

Code

 

For Check All button.  Just use the following scripts in your view page.

 

Code

posted on 2009-03-12 16:48  酷酷酷  阅读(477)  评论(0)    收藏  举报

导航