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

Problem while opening a Rad window

2 Answers 38 Views
Window
This is a migrated thread and some comments may be shown as answers.
Brijendra Kumar
Top achievements
Rank 1
Brijendra Kumar asked on 10 Mar 2009, 08:48 AM
I have an asp button and on button click i am doing as below:

ScriptManager.RegisterStartupScript(Page, Page.GetType(), "openFaultWin", "javascript:openWindow();", true);

but it is not finding the window object.

 

 

function openWindow()
{
szUrl =

"Add_Fault.aspx?header=" + szHeader + "&stage=" + szStage + "&serial_no=" + SerialNo.value + "&insp_id=" + inspectionStageId;

 

oMailWnd = window.radopen(szUrl,

"faults");

 

oMailWnd.setSize(800, 600);

oMailWnd.moveTo(0, 0);

oMailWnd.set_modal(

true);

 

oMailWnd.add_close(OnWindowClose)

oMailWnd.show();
return false;

}

please help...


Thanks & Regards
Brijendra Pandey

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 10 Mar 2009, 10:32 AM
Hi Brijendra Kumar,

Try the following server side code and see whether it is working.

CS;
string script = "<script language='javascript' type='text/javascript'>Sys.Application.add_load(openWindow);</script>";  
ClientScript.RegisterStartupScript(this.GetType(), "openWindow", script);  

Thanks,
Princy.
0
Fiko
Telerik team
answered on 11 Mar 2009, 11:53 AM
Hello Brijendra,

You can also find more detailed information and working examples in this KB article.

Greetings,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Brijendra Kumar
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Fiko
Telerik team
Share this question
or