Rank: Newbie Groups: Member
Joined: 12/2/2013 Posts: 1
|
as I can close a dialog that is located in a master page by c # code from another page that is inside the dialog which is loaded by the content url
master page code snippet
<eo:Dialog runat="server" ID="dia_modal" BorderStyle="None" CloseButtonUrl="00070101" ControlSkinID="None" Height="590px" Width="860px" ShadowColor="LightGray" BorderColor="#335C88" RestoreButtonUrl="00070103" ShadowDepth="3" ResizeImageUrl="00020014" BackShadeColor="Blue" IsModal="False" Font-Size="18pt" HeaderHtml="Parametros" BackColor="White" Font-Bold="True" CancelButton="btn_cancelar" CssClass="CssPop" ClientSideOnCancel="Cancelar" ClientSideOnEnd="Cancelar" ContentUrl=".../otros.aspx"> <ShowEffect Type="GlideLeftToRight" /> <CloseEffect Type="GlideTopRightToBottomLeft" /> <HeaderStyleActive CssText="background-color: #00A8EC;font-family:'Open Sans' , sans-serif;font-size:15pt;padding-bottom:3px;padding-left:4px;padding-right:4px;padding-top:3px;color: White" /> <ContentStyleActive CssText="border-top: #335c88 1px solid;"></ContentStyleActive> <ContentTemplate> </ContentTemplate> </eo:Dialog>
on the other page after making a close the dialog disobey process by code
_InfoTblCompania = LlenarTablaAInsertar(); Logic_TblCompania.ActualizarGeneral(_InfoTblCompania, Convert.ToDecimal(txt_porcentaje.Text)); LlenarFormulario(); string script = @"<script type='text/javascript'> window.parent.document.getElementById('ctl00_dia_modal').close(); </script>"; ScriptManager.RegisterStartupScript(this, typeof(Page), "cerrar", script, false);
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, You can not use getElementById to get the client side dialog object. You must use eo_GetObject to get the client side dialog object. See here for more details: http://www.essentialobjects.com/doc/1/clientapi_howto.aspxThanks!
|