This is a migrated thread and some comments may be shown as answers.

How to refresh the parent page with provided querystring

2 Answers 102 Views
Window
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 15 Jan 2009, 01:34 AM
Hi,

Is there anyway to refresh the parent page from where the radwindow was called with the provided query string as shown below:

In RadWindow code-behind:

 

string url = "Default.aspx?IID=" + instance_ID + "&PID=" + proj_ID + "&View=" + view_ID;

 

 

InjectScript.Text =

"<script type='text/javascript'>CloseAndRedirect('"+url+"')</" + "script>";

In aspx page:

 

 

 

 

function

 

CloseAndRedirect(url)

 

 

{

    GetRadWindow().Close();

 

    GetRadWindow().BrowserWindow.location=

"url";

 

 

 

 

}

My code didn't work correctly, the browser prompted the page cannot be found. Can anyone try to help me out there?

Thanks in advance,
Richard

 

 

 

 

 

 

 

2 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 15 Jan 2009, 01:59 AM
I solved the problem myself just by removing the double quotation mark around the GetRadWindow().BrowserWindow.location= "url";
0
Fiko
Telerik team
answered on 15 Jan 2009, 03:44 PM
Hello Richard,

We are glad that you were able to find a solution yourself.

If you have additional questions, feel free to contact us.

Kind regards,
Fiko
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Richard
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Fiko
Telerik team
Share this question
or