Welcome Guest Search | Active Topics | Sign In | Register

Dialog Options
RSS
Posted: Tuesday, September 10, 2013 10:33:23 PM
Rank: Newbie
Groups: Member

Joined: 7/9/2013
Posts: 1
Thank you for considering my question. I am new to WEB programming but have a programming background. I am trying to use an eo.dialog to collect a small amount of data. I have an asp form specified as my dialog template, it has a text box and a button. When the button in the asp form is clicked I collect the information from the text box and store it in a session variable. it is at this point I would like to close the dialog. Is this possible and if so can you please explain how. As you will see below the closedlg button does close the dialog but I would like to close it from the button code in my template form.

<eo:Dialog ID="Dialog1" runat="server" CloseButtonUrl="00020440" ControlSkinID="None" HeaderHtml='Dialog1' HeaderHtmlFormat="&lt;div style=&quot;padding-top:4px&quot;&gt;{0}&lt;/div&gt;" HeaderImageHeight="27" HeaderImageUrl="00020441" AllowMove="False" Height="235px" AcceptButton="closedlg" AcceptButtonPostBack="True">
<HeaderStyleActive CssText="background-image:url(00020442);color:#444444;font-family:'Arial';font-size:10pt;font-weight:bold;padding-bottom:7px;padding-left:8px;padding-right:0px;padding-top:0px;" />
<ContentStyleActive CssText="background-color:#f0f0f0;font-family:Arial;font-size:8pt;padding-bottom:4px;padding-left:4px;padding-right:4px;padding-top:4px" />
<ContentTemplate>
<iframe id="Dialog1Frame" src="bdgetuser.aspx"></iframe>
<asp:Button ID="closedlg" runat="server" Text="Button" />
</ContentTemplate>
<FooterStyleActive CssText="background-color:#f0f0f0; padding-right: 4px; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; padding-top: 4px; font-family: Arial" />
<BorderImages BottomBorder="00020409,00020429" BottomLeftCorner="00020408,00020428" BottomRightCorner="00020410,00020430" LeftBorder="00020406,00020426" RightBorder="00020407,00020427" TopBorder="00020402,00020422" TopLeftCorner="00020401,00020421" TopLeftCornerBottom="00020404,00020424" TopRightCorner="00020403,00020423" TopRightCornerBottom="00020405,00020425" />

</eo:Dialog>
eo_support
Posted: Tuesday, September 10, 2013 10:39:42 PM
Rank: Administration
Groups: Administration

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

You do not need to do anything special to close the dialog at all. When the page posts back, the dialog is automatically closed. Because your accept button causes a post back, so the dialog should be automatically closed for you.

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.