Welcome Guest Search | Active Topics | Sign In | Register

Back Shade for Modal Dialog Options
Sida
Posted: Monday, October 18, 2010 3:43:09 AM
Rank: Newbie
Groups: Member

Joined: 10/18/2010
Posts: 2
Hi,

I need to hide / closed the dialog box in vb.net code behind. I know how to show it as Dialog1.Show()
But how to hide or close it
eo_support
Posted: Monday, October 18, 2010 9:25:52 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You would set the dialog's InitialState property. For example, set it to "Hidden" would hide the dialog.

Thanks!
Sida
Posted: Tuesday, October 19, 2010 3:02:12 AM
Rank: Newbie
Groups: Member

Joined: 10/18/2010
Posts: 2
Hi,

Here is the coding i used

<eo:Dialog runat="server" ID="Dialog1" BorderStyle="Solid" CloseButtonUrl="00070101"
MinimizeButtonUrl="00070102" AllowResize="True" ControlSkinID="None" Width="300px"
BorderWidth="1px" Height="200px" ShadowColor="LightGray" BorderColor="#335C88"
RestoreButtonUrl="00070103" ShadowDepth="3" HeaderHtml="Dialog Header" ResizeImageUrl="00020014"
BackShadeColor="Blue">
<HeaderStyleActive CssText="padding-right: 4px; padding-left: 4px; font-size: 11px; background-image: url(00070104); padding-bottom: 3px; padding-top: 3px; font-family: tahoma">
</HeaderStyleActive>
<ContentStyleActive CssText="border-top: #335c88 1px solid; background-color: #e5f1fd">
</ContentStyleActive>
<ContentTemplate>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div style="font-family: Arial; font-size: 10pt;">
<table>
<tr>
<td>
Frist Name:
</td>
<td>
<asp:TextBox ID="txtF1" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
Second Name:
</td>
<td>
<asp:TextBox ID="txtF2" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan="2">
<asp:Button ID="btnJoin" runat="server" Text="Button"
OnClick="btnJoin_Click"></asp:Button>
<asp:Button ID="BtnClose" runat="server" Text="Close"
OnClick="BtnClose_Click"/>
</td>
</tr>
<tr>
<td colspan="2">
<asp:Label ID="lblFull" runat="server"></asp:Label>
</td>
</tr>
</table>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</eo:Dialog>

Problem is my closed button is inside the update panel. under click event i used
Dialog1.InitialState = EO.Web.DialogState.Hidden
but it is not working....

eo_support
Posted: Tuesday, October 19, 2010 9:25:39 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
That won't work. You must remove the UpdatePanel if you want to close the dialog on the server side.

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.