First, you need to make sure that the WebGrid is inside the form tag so that the selected checkbox values are submitted. When they are, they will be submitted as one comma-separated string in Request["messageId"]. Then, you need a helper to manage the IN
clause:
http://www.mikesdotnetting.com/Article/156/WebMatrix-Database-Helpers-for-IN-Clauses
Mikesdotnett...
All-Star
154818 Points
19853 Posts
Moderator
MVP
Re: Bulk Delete for Webgrid using Checkbox
Feb 18, 2012 06:47 PM|LINK
First, you need to make sure that the WebGrid is inside the form tag so that the selected checkbox values are submitted. When they are, they will be submitted as one comma-separated string in Request["messageId"]. Then, you need a helper to manage the IN clause: http://www.mikesdotnetting.com/Article/156/WebMatrix-Database-Helpers-for-IN-Clauses
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter