Loading ...

Page Reloading problem

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  getting started / general asp.net   » Page Reloading problem

Page Reloading problem

Posts under the topic: Page Reloading problem

Posted: 9/29/2010

Lurker 57  points  Lurker
  • Joined on: 5/11/2009
  • Posts: 11

Hi

I am facing the  proplem that on the main page is showing the childe page as Popup.

on the child page popup i have used the button on click of that i have write the script code by which it's load the main page again.

it's working fine for mozilla but not working for IE 7 but if i check it sapratelly in a program it's working for both.

when i implement it in Dot Nuke Project it's working for mozilla but not working for IE 7

i can't use the Respone.Redirect(). & also Server.Transfer() only i have to use the script for that.

Script which i have wiritten to Reload the main page-:

StringBuilder sb = new StringBuilder();
        sb.Append("<script type='text/javascript' language='javascript'>");
        sb.Append(System.Environment.NewLine);
        sb.Append("window.close();");
        sb.Append(System.Environment.NewLine);
        sb.Append("if (window.opener && !window.opener.closed) {window.opener.location.reload(); window.refresh();}");
       // sb.Append("window.opener.document.forms(0).submit();");
        
        sb.Append("</script>");        
        //RegisterClientScriptBlock("sb", sb.ToString());
        Page.RegisterStartupScript("sb", sb.ToString());
        Response.Write(sb.ToString());

 

Thanks


Posted: 9/29/2010

Professional 8338  points  Professional
  • Joined on: 4/15/2009
  • Posts: 424

ArunTyagi said:

user="Arun Tyagi"]when i implement it in Dot Nuke Project it's working for mozilla but not working for IE 7

Hi,

What exactly do you meant by not working? are you getting a javascript error or something?


Posted: 9/29/2010

Lurker 57  points  Lurker
  • Joined on: 5/11/2009
  • Posts: 11

Javascript is not working when i click on the button above script run and child popup closed & should be reload the parent page but it's not doing this. but when i send the request from Mozilla it's reload but in case of IE it's not working in the project.

but i tried it out of the project it's working on IE and Mozilla both.

i want to know what is the probs with that .

IF you have any other Idea to do this so plz give me.

 

Thanks


Posted: 10/1/2010

Professional 8338  points  Professional
  • Joined on: 4/15/2009
  • Posts: 424

ArunTyagi said:

user="Arun Tyagi"]Javascript is not working

can you verify if your IE browser produces a javascript error? you can check it the at the lower left portion of the IE browser. If it has a javascript error please post it here for us to troubleshoot.

thanks.


Page 1 of 1 (4 items)