troubleshooting Question

refresh/reload an page from another page using c#

Avatar of Steve Hougom
Steve HougomFlag for United States of America asked on
1 Comment1 Solution2603 ViewsLast Modified:
I have a main page that opens a pop up aspx page for searching.  

When the user searches they end up clicking on a row in a grid to select that record.

This fires a row command argument in the popup and from there jumps into a c# utility class which creates a javascript to handle closing the popup and passing back the searched for ID to the calling page.  See attached screens.

this is the main page they click spyglass to search
Search Popup
popup search
This is the rowcommand event after clicking select.
rowcommand event
Utility class used by several pages to handle pop up searches.  So its a method in there to handle closing the popup and sending back the id to the calling main page.
javascript block
Ok so after the popup window closes the ID ends up in the textbox on the main page.  
not sure how to reload page
What Ive done to this point is save off the ID in session so I can requery the page and load the appropriate record they wanted.  Trouble is Im not sure how to refresh the main page either
a.) via client script when the ID is copied to the textbox using jquery or javascript.
b.) Refreshing the main page from the popup page after the ID value is copied into the text box.  

I cant change the utility class javascript builder because its being used by several other pages.  

I just need to re-fire the submit or page load from the calling page after the Id value is searched on.  I have the right logic in the main page page_load to check for the ID in session and reload the searched for record.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros