Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Resubmit form to refresh grid results

Posted on 2012-03-22
3
Medium Priority
?
644 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
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!
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

604 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