|
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
|
|
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!
|
|
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....
|
|
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
|
|