Welcome Guest Search | Active Topics | Sign In | Register

close the dialog eo web control from c # code in master page Options
PaulPlaza001
Posted: Monday, December 2, 2013 11:27:30 AM
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);
eo_support
Posted: Monday, December 2, 2013 12:03:59 PM
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.aspx

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.