开发者

ASP.Net Gridview control with MVC

开发者 https://www.devze.com 2023-01-23 08:14 出处:网络
I\'ve a requirement to use ASP.Net Grdview control in ASP.Net MVC. Now I need to handle form submit action.I\'m using Objectdatasource for filling my grid. Now when I submit, I need to ha开发者_Go百科

I've a requirement to use ASP.Net Grdview control in ASP.Net MVC. Now I need to handle form submit action.I'm using Objectdatasource for filling my grid. Now when I submit, I need to ha开发者_Go百科ve current state of my grid data which includes checkboxes checked state.


The old ASP.NET controls are made to work with traditional web forms and processing through postback. ASP.NET MVC doesn't use postbacks so they won't work together well. You can use the controls for displaying data well enough, but getting processing on the server will be prohibitively complicated.

You'll be much better off using a grid control designed specifically for ASP.NET MVC. Here's a good question with links to several:

grid controls for ASP.NET MVC?

0

精彩评论

暂无评论...
验证码 换一张
取 消