Click here to Skip to main content
15,886,422 members
Articles / Web Development / ASP.NET

jquery and MVC3 related code to remove selected row in the table

Rate me:
Please Sign up or sign in to vote.
1.00/5 (2 votes)
28 May 2014CPOL 4.1K  
Hi ,Can u please provide code for deleting a row on click of delete in Asp.net 4.0 MVC3...This delete button is present in the every row and is dynamically binded in every row.This row contains checkboxes,textbox,dropdown and Date time calendar.All these controls must be handled on...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
28 May 2014SRS(The Coder)
You can do as described below :-i) While creating the rows dynamically just append the row primary key value to id of the delete icon or add a separate attribute with value of the primary key for the record.ii) Now on click of the delete icon click just get that specific primary key...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions