Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6067579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:37:24+00:00 2026-05-23T09:37:24+00:00

I have a aspx page that pops up a new window to edit some

  • 0

I have a aspx page that pops up a new window to edit some info. When the user is done editing they click save and at the end of the save event I have this C# code:

Context.Response.Write("<script type='text/javascript'>window.parent.location.reload(true);window.frameElement.commitPopup();</script>");
Context.Response.Flush();
Context.Response.End();

So that the parent page will refresh and display the updated info. My problem is that if I have done some other action on the previous page that caused a postback, the code above will try to redo that postback (attempting to delete an item for instance).

Is there some way that I can update my information on the parent page without redoing the last postback?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:37:24+00:00Added an answer on May 23, 2026 at 9:37 am

    Why not just load the same page with a random parametre, to force the load, but not make reload that make and post back

    window.parent.location.href = window.parent.location.href + '?rnd=' + Math.random();
    

    Now if your href have all ready other parametres, you can add &rnd.

    If you make many reloads you can replace the rnd like this:

    window.parent.location.href = window.parent.location.href.replace(/\?rnd.*$/, '?rnd' + Math.random());
    

    Also you can do

    window.parent.location.replace(window.parent.location.href.replace(/\?rnd.*$/, '?rnd' + Math.random()));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple page that pops up a telerik radwindow on button click.
I have an aspx page that on a button click creates a BackgroundWorker and
I have an aspx page that, on a button click, creates an instance of
I have an aspx page that contains a user control. The user control has
I have an aspx page that contains regular html, some uicomponents, and multiple tokens
I have an aspx page with a button. When the user clicks that button,
I have an aspx page that dynamically loads user controls: there is an UpdatePanel
I have a ASPX Page that contains several user controls, which are loaded dynamically
I have a aspx page that looks something like this: <tr id=Row1> <td>Some label</td>
I have a aspx page that seems to be loading twice when I enter

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.