I am having trouble opening a RadWindow using server code. I have to set Session variables before the window is open, so I have to open it in server code. The server code worked with a regular window, but not with RadWindow. I have tried all of the techniques listed below (I replaced url with [path] & window name with [name]):
or:
[javascript]
popupScript =
"<script>var wnd = window.radopen(\"[path]\", \"[name]\");</script>";
Page.RegisterStartupScript(
"PopupScript", popupScript);
or:
[javascript]
function
OpenWindow(name) {
var wnd = window.radopen([path], [name]);
wnd.Maximize();
return false;
}
[c#]
popupScript =
"<script>OpenWindow('[name]');</script>";
Page.RegisterStartupScript("PopupScript", popupScript);
or:
popupScript = 'javascript:OpenWindow('[name]');:;
Page.RegisterStartupScript("PopupScript", popupScript);
I know that Page.RegisterStartupScript is considered obsolete, but it still works to open normal windows. Is there something specific I would have to do to make a RadWindow able to be opened in server code?