radwindow close problem

2 posts, 0 answers
  1. lhalfon
    lhalfon avatar
    25 posts
    Member since:
    Aug 2007

    Posted 09 Jun 2009 Link to this post

    Hi!

    i've this webform that opens a radwindow.

    <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MovimientosInversores.aspx.cs" Inherits="MovimientosInversores" Title="Untitled Page" %> 
     
    <%@ Register Namespace="Octopus.CustomControls" TagPrefix="UC" %> 
     
    <asp:Content ID="Content1" ContentPlaceHolderID="MainContainer" Runat="Server"
         
        <script type="text/javascript"
            function noENTER(evt) 
            { 
                var evt = (evt) ? evt : ((event) ? event : null); 
                var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null); 
                if ((evt.keyCode == 13) && (node.type=="text")) 
                    return false; 
            } 
            document.onkeypress = noENTER
             
            function boxOffHover(box) { 
                box.style.background="#fff"
            } 
     
            function boxOnHover(box) { 
                box.style.background="#f3f3f3"
            } 
        </script> 
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
            <script type="text/javascript"
                function ClientClose(sender, eventArgs)  
                {  
                    //alert("aaa"); 
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();  
                } 
                 
                function ShowInsertForm() 
                { 
                    var combo = $find("<%= ddlObra.ClientID %>"); 
                    var id = combo.get_selectedItem().get_value(); 
                    if(id != "0") 
                        window.radopen("http://localhost:3512/Back/popups/NuevoInversor.aspx?Id="+id, "RadWindow1"); 
                    else 
                        alert("Debe seleccionar una obra."); 
                } 
                 
            </script> 
        </telerik:RadCodeBlock> 
             
        <table cellpadding="0" cellspacing="0" style="width:100%;"
            <tr> 
                <td style="vertical-align:bottom">   
                    <UC:PageTitle ID="ucPageTitle" runat="server"  
                        Width="100%" 
                        ShowMandatoryMessage="false" 
                        Title="Ingreso de Movimientos de Inversores"  
                        SubTitle="Ingrese los datos solicitados" /> 
                </td> 
                <td style="vertical-align:middle; background-color:Transparent" align="right"
                    <asp:Panel runat="server" ID="pnlMsj"
                        <UC:FormMessage runat="server" ID="FormMessage"></UC:FormMessage> 
                    </asp:Panel> 
                </td> 
            </tr> 
            <tr> 
                <td class="Divisor" colspan="2"></td> 
            </tr> 
        </table> 
        <br /> 
        <br />   
        <div> 
            <div align="left"
                <UC:MenuMovimientos runat="server" ID="ucMenuMovimientos"></UC:MenuMovimientos> 
            </div> 
            <br /> 
            <br /> 
            <br /> 
            <asp:Panel runat="server" ID="pnlInfo"
                 
                <div class="listaItems" style="width:300px; float:left" onmouseover="boxOnHover(this);" onmouseout="boxOffHover(this);"
                    <ul> 
                        <li> 
                            <asp:Label runat="server" ID="Label1" CssClass="Title" Text="Sub Tipo Movimiento" /><br /> 
                            <asp:Label runat="server" ID="lblSubTipoMov" CssClass="LabelLetraColor"></asp:Label> 
                            <telerik:RadComboBox runat="server" ID="ddlSubTipoMovimiento" Width="160px" Visible="false"
                                <%--MarkFirstMatch="true" AutoPostback="True" OnSelectedIndexChanged="ChangeConcept" --%> 
                                <Items> 
                                    <telerik:RadComboBoxItem Text="Aporte Inicial" Value="I" Selected="true" /> 
                                    <telerik:RadComboBoxItem Text="Aporte" Value="A" /> 
                                    <telerik:RadComboBoxItem Text="Retiro" Value="R" /> 
                                    <telerik:RadComboBoxItem Text="Otro" Value="O" /> 
                                </Items> 
                            </telerik:RadComboBox> 
                        </li> 
                        <li> 
                            <asp:Label runat="server" ID="lblFecha" CssClass="Title" Text="Fecha" /><br /> 
                            <telerik:RadDatePicker ID="txtFecha" runat="server"></telerik:RadDatePicker> 
                            <asp:RequiredFieldValidator ID="rqvFecha" runat="server" ErrorMessage="obligatorio" 
                                Display="Dynamic" ControlToValidate="txtFecha"></asp:RequiredFieldValidator> 
                        </li> 
                        <li> 
                            <asp:Label runat="server" ID="lblObra" CssClass="Title" Text="Obra" /><br /> 
                            <telerik:RadComboBox runat="server" ID="ddlObra" Width="265px" Height="150px" CausesValidation="false"  
                                AutoPostback="True" OnSelectedIndexChanged="GetInfo" MarkFirstMatch="true"></telerik:RadComboBox> 
                                 
                            <br /> 
                            <asp:Panel runat="server" ID="pnlPlanDeInversion" Visible="false"
                                <href="#" runat="server" id="lnkPlanDeInversion">Ver plan de inversion</a> 
                            </asp:Panel> 
                            <asp:RequiredFieldValidator ID="rqvObra" runat="server" ErrorMessage="obligatorio" 
                                Display="Dynamic" ControlToValidate="ddlObra"></asp:RequiredFieldValidator> 
                        </li> 
                        <li style="border:0"
                            <asp:Label runat="server" ID="lblInversor" CssClass="Title" Text="Inversor" /><br /> 
                            <telerik:RadComboBox runat="server" ID="ddlInversor" Width="265px" Height="150px" CausesValidation="false" 
                                AutoPostback="True" OnSelectedIndexChanged="SetPorcentual" MarkFirstMatch="true" Filter="Contains"></telerik:RadComboBox> 
                            <br /> 
                            <href="javascript:ShowInsertForm();">Nuevo</a> 
                            <%--<asp:LinkButton runat="server" id="lnkNuevoInv" Text="Nuevo" CausesValidation="false"></asp:LinkButton>--%> 
                            <asp:RequiredFieldValidator ID="rqvInversor" runat="server" ErrorMessage="obligatorio" 
                                Display="Dynamic" ControlToValidate="ddlInversor"></asp:RequiredFieldValidator> 
                        </li> 
                         
                    </ul> 
                </div> 
                <div class="listaItems" style="margin:0 20px; width:280px; float:left" onmouseover="boxOnHover(this);" onmouseout="boxOffHover(this);"
                    <ul> 
                        <li> 
                            <asp:Label runat="server" ID="lblFormaDePago" CssClass="Title" Text="Forma de Pago" /><br /> 
                            <table cellpadding="0" cellspacing="0"
                                <tr> 
                                    <td> 
                                        <telerik:RadComboBox runat="server" ID="ddlFormaDePago" Width="100px" CausesValidation="false"  
                                            AutoPostback="True" OnSelectedIndexChanged="ShowCheque" MarkFirstMatch="true"
                                            <Items> 
                                                <telerik:RadComboBoxItem Text="Cheque" Value="C" /> 
                                                <telerik:RadComboBoxItem Text="Efectivo" Value="E" Selected="true" /> 
                                                <telerik:RadComboBoxItem Text="Mixto" Value="M" /> 
                                            </Items> 
                                        </telerik:RadComboBox> 
                                    </td> 
                                    <td>&nbsp;&nbsp;</td> 
                                    <td class="ColumnLabel" style="vertical-align:top"
                                        <asp:Panel runat="server" ID="pnlCheque" Visible="false"
                                            <asp:Label runat="server" ID="lblNroCheque" CssClass="Title" Text="Nro." /> 
                                            &nbsp; 
                                            <asp:TextBox runat="server" ID="txtNroCheque" MaxLength="50" CssClass="TextBoxMini" SkinID="None"></asp:TextBox> 
                                        </asp:Panel> 
                                    </td> 
                                </tr> 
                            </table> 
                        </li> 
                        <li> 
                            <asp:Label runat="server" ID="lblConcepto" CssClass="Title" Text="Concepto" /><br /> 
                            <telerik:RadComboBox runat="server" ID="ddlCuota" Width="250px" Height="150px" CausesValidation="false"  
                                AutoPostback="True" OnSelectedIndexChanged="GetValorCuota" MarkFirstMatch="true"></telerik:RadComboBox> 
                            <br /> 
                            <asp:Panel runat="server" ID="pnlConcepto" Visible="false"
                                <asp:TextBox runat="server" ID="txtConcepto" MaxLength="128"></asp:TextBox> 
                            </asp:Panel> 
                            <asp:RequiredFieldValidator ID="rqvConcepto" runat="server" ErrorMessage="obligatorio" 
                                Display="Dynamic" ControlToValidate="ddlCuota"></asp:RequiredFieldValidator> 
                        </li> 
                        <li> 
                            <table cellpadding="0" cellspacing="0"
                                <tr> 
                                    <td> 
                                        <asp:Label runat="server" ID="lblImporteDolares" CssClass="Title" Text="Importe U$S" /><br /> 
                                        <telerik:RadNumericTextBox ID="txtImporteDolares" runat="server" InvalidStyleDuration="100" CausesValidation="false" 
                                            ShowSpinButtons="True" Type="Number" width="100px" OnTextChanged="ChangeMonto" AutoPostBack="true"
                                            <NumberFormat DecimalDigits="2" DecimalSeparator="." GroupSizes="3" GroupSeparator=" " /> 
                                        </telerik:RadNumericTextBox> 
                                        <asp:RequiredFieldValidator ID="rqvImporteDolares" runat="server" ErrorMessage="obligatorio" 
                                            Display="Dynamic" ControlToValidate="txtImporteDolares"></asp:RequiredFieldValidator> 
                                    </td> 
                                    <td>&nbsp;&nbsp;</td> 
                                    <td> 
                                        <asp:Label runat="server" ID="lblTipoCambio" CssClass="Title" Text="Tipo de Cambio" /><br /> 
                                        <telerik:RadNumericTextBox ID="txtTipoCambio" runat="server" InvalidStyleDuration="100" CausesValidation="false" 
                                            ShowSpinButtons="True" Type="Number" width="100px" OnTextChanged="ChangeMonto" AutoPostBack="true"
                                            <NumberFormat DecimalDigits="4" DecimalSeparator="." GroupSizes="3" GroupSeparator=" " /> 
                                        </telerik:RadNumericTextBox> 
                                        <asp:RequiredFieldValidator ID="rqvTipoCambio" runat="server" ErrorMessage="obligatorio" 
                                            Display="Dynamic" ControlToValidate="txtTipoCambio"></asp:RequiredFieldValidator> 
                                    </td> 
                                </tr> 
                            </table> 
                        </li> 
                        <li style="border:0"
                            <asp:Label runat="server" ID="lblImportePesos" CssClass="Title" Text="Importe $" /><br /> 
                            <telerik:RadNumericTextBox ID="txtImportePesos" runat="server" InvalidStyleDuration="100" CausesValidation="false" 
                                ShowSpinButtons="True" Type="Number" width="100px" OnTextChanged="ChangeDolares" AutoPostBack="true"
                                <NumberFormat DecimalDigits="2" DecimalSeparator="." GroupSizes="3" GroupSeparator=" " /> 
                            </telerik:RadNumericTextBox> 
                            <asp:RequiredFieldValidator ID="rqvImportePesos" runat="server" ErrorMessage="obligatorio" 
                                Display="Dynamic" ControlToValidate="txtImportePesos"></asp:RequiredFieldValidator> 
                        </li> 
                    </ul> 
                </div> 
                <div class="listaItems" style="margin:0 10px; width:200px; float:left" onmouseover="boxOnHover(this);" onmouseout="boxOffHover(this);"
                    <ul> 
                        <li> 
                            <asp:Label runat="server" ID="lblTipoComprobante" CssClass="Title" Text="Comprobante" /><br /> 
                            <table cellpadding="0" cellspacing="0"
                                <tr> 
                                    <td> 
                                        <telerik:RadComboBox runat="server" ID="ddlTipoComprobante" Width="140px" CausesValidation="false"  
                                            MarkFirstMatch="true"></telerik:RadComboBox> 
                                    </td> 
                                    <td>&nbsp;&nbsp;</td> 
                                    <td class="ColumnLabel"
                                        <asp:Label runat="server" ID="lblNroComprobante" CssClass="Title" Text="Nro." /> 
                                    </td> 
                                    <td>&nbsp;</td> 
                                    <td> 
                                        <asp:TextBox runat="server" ID="txtNroComprobante" MaxLength="50" CssClass="TextBoxMini" SkinID="None"></asp:TextBox> 
                                    </td> 
                                </tr> 
                            </table> 
                        </li> 
                        <li style="border:0"
                            <asp:Label runat="server" ID="lblObservacion" CssClass="Title" Text="Observacion" /><br /> 
                            <asp:TextBox runat="server" ID="txtObservacion" MaxLength="512" SkinID="Observation" TextMode="MultiLine"></asp:TextBox> 
                        </li> 
                        <li style="border:0"></li> 
                        <li style="border:0"></li> 
                    </ul> 
                </div> 
            </asp:Panel> 
        </div>   
        <br /> 
        <UC:FormFooter runat="server" ID="ucFormFooter" /> 
         
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
            <Windows> 
                <telerik:RadWindow ID="RadWindow1" runat="server" Title="Nuevo Inversor" Height="400px" Behaviors="Close,Move" 
                    Width="400px" Left="150px" Top="250px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" OnClientClose="ClientClose" /> 
            </Windows> 
        </telerik:RadWindowManager> 
         
        <telerik:RadAjaxManager id="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="ucFormFooter$btnAceptar"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="pnlInfo" LoadingPanelID="AjaxLoadingPanel"></telerik:AjaxUpdatedControl> 
                        <telerik:AjaxUpdatedControl ControlID="pnlMsj"></telerik:AjaxUpdatedControl> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="ddlFormaDePago"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="ddlFormaDePago"></telerik:AjaxUpdatedControl> 
                        <telerik:AjaxUpdatedControl ControlID="pnlCheque"></telerik:AjaxUpdatedControl> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="ddlCuota"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="txtImporteDolares"></telerik:AjaxUpdatedControl> 
                        <telerik:AjaxUpdatedControl ControlID="txtImportePesos"></telerik:AjaxUpdatedControl> 
                        <telerik:AjaxUpdatedControl ControlID="pnlMsj"></telerik:AjaxUpdatedControl> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="txtImporteDolares"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="txtImportePesos"></telerik:AjaxUpdatedControl> 
                        <telerik:AjaxUpdatedControl ControlID="pnlMsj"></telerik:AjaxUpdatedControl> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="txtImportePesos"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="txtImporteDolares"></telerik:AjaxUpdatedControl> 
                        <telerik:AjaxUpdatedControl ControlID="pnlMsj"></telerik:AjaxUpdatedControl> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="ddlSubTipoMovimiento"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="ddlSubTipoMovimiento"></telerik:AjaxUpdatedControl> 
                        <telerik:AjaxUpdatedControl ControlID="txtConcepto"></telerik:AjaxUpdatedControl> 
                    </UpdatedControls> 
                </telerik:AjaxSetting>           
                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">  
                    <UpdatedControls>  
                           <telerik:AjaxUpdatedControl ControlID="ddlInversor" />  
                    </UpdatedControls>  
                </telerik:AjaxSetting>  
                <%--<telerik:AjaxSetting AjaxControlID="lnkAgregarInv"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="pnlInfo" LoadingPanelID="AjaxLoadingPanel"></telerik:AjaxUpdatedControl> 
                        <telerik:AjaxUpdatedControl ControlID="pnlMsj"></telerik:AjaxUpdatedControl> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                 <telerik:AjaxSetting AjaxControlID="lnkCancelInv"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="pnlInfo" LoadingPanelID="AjaxLoadingPanel"></telerik:AjaxUpdatedControl> 
                        <telerik:AjaxUpdatedControl ControlID="pnlMsj"></telerik:AjaxUpdatedControl> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="lnkCancelInv2"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="pnlInfo" LoadingPanelID="AjaxLoadingPanel"></telerik:AjaxUpdatedControl> 
                        <telerik:AjaxUpdatedControl ControlID="pnlMsj"></telerik:AjaxUpdatedControl> 
                    </UpdatedControls> 
                </telerik:AjaxSetting>--%> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadAjaxLoadingPanel ID="AjaxLoadingPanel" runat="server" Height="55px" Width="54px" Transparency="50"
            <br /><br /><br /><br /><br /><br /> 
            <asp:Image ID="imgLoading" runat="server" AlternateText="Loading..." SkinID="FormLoading"></asp:Image> 
        </telerik:RadAjaxLoadingPanel> 
         
        <asp:ValidationSummary ID="valSumPage" runat="server" SkinID="valSumDeEdicion" HeaderText="Han ocurrido los siguientes errores:" 
            EnableClientScript="true" ShowMessageBox="false" ShowSummary="false" /> 
        <asp:CustomValidator ID="valCustom" runat="server" Display="None" OnServerValidate="ServerValidate"></asp:CustomValidator>   
    </asp:Content> 
     
     

    and this id the popup code's

    <html xmlns="http://www.w3.org/1999/xhtml"
    <head runat="server"
        <title>Nuevo Inversor</title> 
        <script type="text/javascript" src="../js/Windows.js"></script> 
    </head> 
    <body> 
        <form id="frmNuevoInversor" runat="server"
            <asp:ScriptManager ID="mainScriptManager" runat="Server"
            </asp:ScriptManager> 
             
            <div> 
                <div class="listaItems" style="width:150px; float:left; margin-left:10px"
                    <ul> 
                        <li> 
                            <asp:Label runat="server" ID="lblNombre" CssClass="Title" Text="Nombre" /><br /> 
                            <asp:TextBox runat="server" ID="txtInvNombre" MaxLength="128" CssClass="TextBoxSmall" SkinID="None" ValidationGroup="NuevoInv"></asp:TextBox> 
                            <asp:RequiredFieldValidator ID="rqvNombre" runat="server" ErrorMessage="obligatorio" 
                                Display="Dynamic" ControlToValidate="txtInvNombre" ValidationGroup="NuevoInv"></asp:RequiredFieldValidator> 
                        </li> 
                        <li> 
                            <asp:Label runat="server" ID="lblSexo" CssClass="Title" Text="Sexo" /><br /> 
                            <telerik:RadComboBox runat="server" ID="ddlInvSexo" Width="160px" MarkFirstMatch="true" ValidationGroup="NuevoInv"
                                <Items> 
                                    <telerik:RadComboBoxItem Text="Femenino" Value="F" /> 
                                    <telerik:RadComboBoxItem Text="Masculino" Value="M" Selected="true" /> 
                                </Items> 
                            </telerik:RadComboBox> 
                        </li>                            
                        <li style="border:0"
                            <asp:Label runat="server" ID="lblDoc" CssClass="Title" Text="Tipo Documento" /><br /> 
                            <telerik:RadComboBox runat="server" ID="ddlInvTipoDocumento" Width="100px" MarkFirstMatch="true" ValidationGroup="NuevoInv"></telerik:RadComboBox> 
                        </li> 
                         
                    </ul> 
                </div> 
                <div class="listaItems" style="width:150px; float:right"
                    <ul> 
                        <li> 
                            <asp:Label runat="server" ID="lblApellido" CssClass="Title" Text="Apellido" /><br /> 
                            <asp:TextBox runat="server" ID="txtInvApellido" MaxLength="128" CssClass="TextBoxSmall" SkinID="None" ValidationGroup="NuevoInv"></asp:TextBox> 
                            <asp:RequiredFieldValidator ID="rqvApellido" runat="server" ErrorMessage="obligatorio" 
                                Display="Dynamic" ControlToValidate="txtInvApellido" ValidationGroup="NuevoInv"></asp:RequiredFieldValidator> 
                        </li> 
                        <li> 
                            <asp:Label runat="server" ID="lblInvPorcentual" CssClass="Title" Text="Porcentual %" /><br /> 
                            <telerik:RadNumericTextBox ID="txtInvPorcentual" runat="server" InvalidStyleDuration="100" 
                                ShowSpinButtons="True" Type="Percent" width="100px"
                                 <NumberFormat DecimalDigits="2" DecimalSeparator="." GroupSizes="3" GroupSeparator=" " /> 
                            </telerik:RadNumericTextBox> 
                            <asp:RequiredFieldValidator ID="rqvPorcentual" runat="server" ErrorMessage="obligatorio" 
                                Display="Dynamic" ControlToValidate="txtInvPorcentual" ValidationGroup="NuevoInv"></asp:RequiredFieldValidator> 
                        </li> 
                        <li style="border:0"
                            <asp:Label runat="server" ID="Label1" CssClass="Title" Text="Nro. Documento" /><br /> 
                            <UC:CustomTextBox runat="server" ID="txtInvNroDocumento" CssClass="TextBoxSmall" SkinID="None"  
                                CharacterExpression="[\d]" ValidationExpression="^\d+$" MaxLength="20"></UC:CustomTextBox> 
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="obligatorio" 
                                Display="Dynamic" ControlToValidate="txtInvNroDocumento" ValidationGroup="NuevoInv"></asp:RequiredFieldValidator> 
                        </li> 
                    </ul> 
                </div>   
                 
            </div> 
            <br /> 
            <div align="center" style="width:380px"
                <asp:ImageButton runat="server" ID="lnkAgregarInv" AlternateText="Aceptar"  
                    OnClick="AgregarInversor" ValidationGroup="NuevoInv" ImageAlign="AbsMiddle" ImageUrl="~/Media/Images/Global/Accept.jpg" /> 
             
                <br /><br /> 
                <asp:Panel runat="server" ID="pnlMsj"
                    <asp:Label runat="server" ID="lblMessage" ForeColor="Red"></asp:Label> 
                </asp:Panel> 
                <%--<asp:LinkButton runat="server" id="lnkCancelInv2" Text="Cancelar" OnClick="CancelarInversor" CausesValidation="false"></asp:LinkButton>--%> 
            </div> 
        </form> 
    </body> 
    </html> 
     


    in the code behind i do this on button function:
    Response.Write("<script type='text/javascript'>CloseRadWindow();</script>");

    this is the .js
    function GetRadWindow() 
        var oWindow = null
        if (window.radWindow) oWindow = window.radWindow; 
        else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; 
        else if (window.parent.frameElement.radWindow) oWindow = window.parent.frameElement.radWindow; 
        //alert(oWindow); 
        return oWindow; 
    }  
     
    function CloseRadWindow() 
        GetRadWindow().Close(); 


    what i'm doing wrong?

    thanks










  2. Mal
    Mal avatar
    11 posts
    Member since:
    May 2008

    Posted 17 Jun 2009 Link to this post

    Hi Ihalfon,
    Why not try the .net inbuilt response script insertion.

     

    ' close the window.

     

    ClientScript.RegisterClientScriptBlock(

    Me.GetType(), "closepage", "<script type=""text/javascript""> function CloseRadWindow() </script>")

    Place that code in the event or vb code that closes the window.

     

Back to Top