Solved

Resubmit form to refresh grid results

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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

12 Experts available now in Live!

Get 1:1 Help Now