Click here to Skip to main content
12,452,251 members (54,843 online)
Rate this:
 
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 3:08am
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

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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160826.1 | Last Updated 8 Mar 2013
Copyright © CodeProject, 1999-2016
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