Click here to Skip to main content
16,016,180 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I was wondering if its possible to have a GridView with Edit, Delete and maybe Add operations using AJAX POST and JSON.

When either of the CRUD buttons are clicked it opens a Jquery Dialog with the fields and buttons to insert/update and delete.

Any examples would be appreciated.

Thanks


I have attempted to write the code, see below post in the solutions section.But when 'Edit' is clicked it brings up the dialog but without the data..am i missing anything more?
Posted
Updated 28-Feb-13 23:07pm
v4
Comments
Sandeep Mewara 28-Feb-13 11:33am    
Yes possible. Now, can you try out and be specific on where are you facing issue?
Sandeep Mewara 28-Feb-13 12:21pm    
Please use 'Improve Question' link and update question with details and related snippet. That will help you in getting answer.
Sandeep Mewara 1-Mar-13 6:13am    
Are you just an advisor here or someone who helps with queries?
Now, not a helper to you for sure. Second thought, no more advise to you either.

Good to know you. Enjoy.
spankyleo123 8-Mar-13 8:21am    
Your no good anyway.

1 solution

Solved it by using RowDataBound event on the Grid view to bind data to the controls to be displayed in the dialog. Save button on the dialog does an Ajax post to submit data. Its all working great. :)
 
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