Solved

Resubmit form to refresh grid results

Posted on 2012-03-22
3
634 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 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