
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

var
treeView = $find("<%= MyTree.ClientID %>");
but this but when the code runs, this error appears:
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
I've tried this code too:
var tree = $find("MyTree");
but this error appears:
Microsoft JScript runtime error: Object expected
What's the reason ? Is it because of the old version or not ?
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="ImageButton1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="img_mainimage" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/site/glyphs/marker.gif" />
<asp:Image ID="img_mainimage" runat="server" Width="586px" Height="390px" />
<subgurim:GMap ID="GMap1" runat="server" />