Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
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 28-Feb-13 4:08am
Edited 1-Mar-13 0:07am
v4
Comments
Sandeep Mewara at 28-Feb-13 11:33am
   
Yes possible. Now, can you try out and be specific on where are you facing issue?
Sandeep Mewara at 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 at 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 at 8-Mar-13 8:21am
   
Your no good anyway.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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. Smile | :)
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 515
1 Maciej Los 340
2 Richard MacCutchan 265
3 BillWoodruff 225
4 Mathew Soji 155
0 OriginalGriff 8,804
1 Sergey Alexandrovich Kryukov 7,457
2 DamithSL 5,689
3 Maciej Los 5,279
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web04 | 2.8.1411028.1 | Last Updated 8 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100