parent aspx page not refreshing by script

I have 2 pages p1 nd p2 . p2 is popup on p1 button's click. I want on close of p2 , p1 must be refresh. so i write script on button of submit of p2 as :

String lsScript = ""; lsScript = "<Script JavaScript>refreshParent();"; lsScript += "</Script>"; Page.ClientScript.RegisterStartupScript(this.GetType(), "ClosePage", lsScript);

same script working on other pages in the same scenario. what should the problem.

function refreshParent() { window.opener.location.href = window.opener.location.href; if (window.opener.progressWindow) { window.opener.progressWindow.close() } //window.close(); }

This is the refreshPsrent function

Category:scripting Views:2 Time:2010-03-04

Related post

  • How to enable/disable web elements of a parent aspx page from the child ascx page? 2009-07-20

    I have an aspx page with three web controls: one to control the List Users page, one to control the Edit Users page, and one to control the Add User page. I have discovered a method for accessing these elements, but it seems to be limited. Here is wh

  • Call a function of parent aspx page from web user control 2011-12-22

    i have a aspx page on it i'm dynamically adding the web user controls in a placeholder. and know i have cancel button on the one user control and on click of that Cancel button i want to load other user control inside the aspx page (placeholder). how

  • how to refresh parent aspx page from popup window without security prompt 2011-06-21

    I am opening a popup window using showModalDialog and refreshing the parent page on popup close is working, however it also gives me the "internet explorer needs to resend the information" prompt which is totally unwanted, how can I get rid of this.

  • How to pass values from parent.aspx page to user control? 2011-04-09

    I have the following setup in my application and I'm having some difficulties passing values my user control. ASPX <% var posts = this.getPosts(); foreach (var post in posts) { %> <asp:TextBox runat="server" Text="<%: post.post_id %>"

  • Remembering active tab on refresh of ASPX page 2010-06-04

    I've got an ASPX page set up that loads and displays dynamic data from a local SQLite database. Since the data is being written to the database from a separate C# application, I've set up my ASPX page to refresh every 30 seconds when the database has

  • Login to ASPX page with Perl script 2012-02-03

    I am trying to scrap an ASPX page with Perl's WWW::Mechanize . The problem is that the page I want to scrape can be accessed only after logging in. I tried using the HTML::TreeBuilderX::ASP_NET module but can't seem to get it to work. I tried setting

  • How to postback aspx page in iframe? 2011-04-30

    I have an iframe in my main aspx page and this iframe has also a aspx page. iframe's page has some controls and main aspx page has a submit button on it. Now I want to postback iframe's page on submit button's click event using javascript. So that ma

  • Can an ASP.NET user control determine its context or its parent .aspx file 2010-03-08

    Is it possible for a user control to determine its "context" or its parent .aspx page in some way? Right now I have a user control that is declared on a typical .aspx page as follows: <%@ Register TagPrefix="uc1" TagName="ManageTitle" Src="../User

  • Upload a file to a server using .aspx pages (VB) 2011-05-19

    I'm currently developing an application in .aspx pages which use VB Script on an IIS server. I need to upload an image in one of my HTML forms. Currently the code uses Form.Request("field_name") to get the data from the text fields. I would like to k

  • close child aspx page if gridview index is changed on parent page 2011-11-17

    I have a parent page and child page, both aspx. All is working, but now I would like to close child page, if user leaves child popup page and goes back to parent page and clicks on something else like page index of Gridview. I CANNOT close popup chil

  • Onclick refresh only div content, Not all aspx page 2012-03-30

    I have two pages that inherit from one master page, First.aspx or second.aspx. Navigation is on master page. If I am on first.aspx page & want to go to second.aspx onClick. I just want to load My contentplaceholder, not refresh all of the page. I

  • No dynamic page is in script document when I debug my .aspx page 2010-01-15

    I'm trying to debug JavaScript code in my .aspx page. I insert a breakpoint, and press F5 for debugging, but there is no dynamic page created in script documents. Why does the ASP.NET development server not create the dynamic page? Any ideas? -------

  • how to run a java script from different aspx page 2010-02-05

    HI I have a aspx page with a link . If i click that link i want the page to be redirected to another aspx page and execute the java script in it .. ... plz some one help ... .. --------------Solutions------------- This code below will redirect your p

  • Script tag in ASPX page is not written 2010-05-10

    I have an aspx page with the following code (partial and simplified): (beginning of page) <body id="body" runat="server"> <form id="form1" runat="server">some HTML</form> <script type="text/javascript"> window.addEvent('domrea

  • Script tag in ASPX page is written partially (output stopped at random) 2010-05-12

    I have an aspx page where I put a script tag with .net "if" and "else". The problem is that the output gets cut at random points each time. Sometimes it's ok, sometimes I get cropped output. The code itself (Simplified example): <body id="body" ru

  • Order of CSS and Script Calls in an ASPX page 2010-10-19

    Is there any specific order in which the external CSS or Scripts should be called in a ASPX page which could help a bit in decreasing the page load time? i.e script type="text/javascript" src="../Includes/JavaScript/jquery.ui.tabs.js" link href="../I

  • how to optimize aspx page when it has several script files included inside it? 2010-11-25

    i have an aspx page which contains script references to many javascript and css files(about 10 or more). the problem is as you would expect is the slow loading time of the page. i tried to move some of the scripts to the end of the page but this did

  • Public methods in ASPX page getting used in other scripts 2011-02-26

    We had a very strange issue on our servers this week, where a method in an aspx script (with no code-behind file) was somehow getting called from completely unrelated pages elsewhere on our site. Basically, the script said this: <script language="

  • Script and image path errors broken on Default.aspx page 2011-05-09

    Simple aspx page, called Default.aspx. Images are broken and script files are not being found. I know these paths are correct because I can copy them to another aspx page that's not called Default.aspx and they work. I'm at a total loss, only thing I

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.138 (s). 11 q(s)