Click here to Skip to main content
15,884,960 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello,

How to Edit,Update,Delete using or inline WebGrid and Jquery Json in c# mvc?

Please help me.

Thanks in Advance.

Ankit Agarwal
Software Engineer
Posted
Updated 10-Nov-14 23:57pm
v2
Comments
Herman<T>.Instance 11-Nov-14 5:43am    
What have yo tried?
Where are you stuck?

1 solution

A WebGrid returns an HTML Table when sent down to the user. So once down the stream, you're having an HTML markup to work on. Add an extra column for the user to enter the Editing [, and or delete update] state where you will alow him to work on that specific result from the table.

This way, you can create different pages like "Edit", "Delete", "Update" and just pass the ID of the result from the table to that page using a QueryString[^] or the UrlData[^] and then let the user get control over that result.

Mikesdotnetting has written an article on this topic. Read that article[^] and you will surely get enough understanding about editting and updating the records in WebGrid.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900