Solved

Resubmit form to refresh grid results

Posted on 2012-03-22
3
632 Views
Last Modified: 2012-03-26
Is it possible to resubmit a form to refresh grid results?

The scenario is involves three panels.  One panel is the form.  The second is a grid based on the search request.  The third is a grid based on the same search results plus a specific check box being checked.

Instead of having to go back and resubmitting the form it would be nice to have a button that would resubmit the forms entries from the second or third panel and toggle to the others grids results.  The check box would have to change from checked or unchecked and all other control values would remain the same.
0
Comment
Question by:ws11
  • 2
3 Comments
 
LVL 9

Expert Comment

by:gery128
ID: 37753109
What you are using for Ajax requests? ASP.NET Ajax Update Panel or jQuery's ajax() method ?
Your requirement can be achieved easily through update panel but they are very heavy and jQuery is lightweight but you would be using lots of client side code to play-with.

Can we have more explained requirement ?
0
 

Author Comment

by:ws11
ID: 37757421
It might be better to generate both at the same time and hide one with a toggle or tab interface.  But you are hitting on the main concern the size.  So there are two different grids that show slightly different results.  So tell me more about the jquery method or what is the best source for full examples.  The jquery site seems to show things in smaller bits so it takes a lot of time to find the whole picture.  Also you say lots of client code does that mean it is very hard to do or maintain and even worse easy to create a mess?
0
 
LVL 9

Accepted Solution

by:
gery128 earned 500 total points
ID: 37764649
You can start with jQuery and ASP.NET tutorials online. This links might help you:

https://forums.asp.net/p/1778744/4875976.aspx/1?Re+How+to+bind+gridview+using+Jquery+or+JSON+in+asp+net+C+using+Generic+Handler

http://encosia.com/using-jquery-to-directly-call-aspnet-ajax-page-methods/

http://stackoverflow.com/questions/6688294/asp-net-webforms-ajax-update-gridview



If your 2nd & 3rd panel has the same grid data then you can make database ajax call once and bind both grid with results.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now