Welcome Guest Search | Active Topics | Sign In | Register

Using the Dialog Class from C# Options
Rabih
Posted: Sunday, June 24, 2007 8:29:53 AM
Rank: Member
Groups: Member

Joined: 6/24/2007
Posts: 14
Hello, I am new to essential objects and trying to convince my own team to use it, but since i am facing a problem popping up multiple dialogs without previously creating them in aspx file, I am finding using the library pretty hard since what we are looking for is multiple-document-interface-like, is it possible to do that with essential objects? if yes then any hints pls? see my code and tell me where my mistake is since i am unable to find the fire command that forces the dialog to show.

Regards

Dialog dynDialog = new Dialog();
dynDialog.ID = "test";
dynDialog.ControlSkinID = "None";
dynDialog.Width = 1000;
dynDialog.Height = 500;
dynDialog.HeaderHtml = "Search Dialog for";
dynDialog.BorderStyle = BorderStyle.Solid;
dynDialog.CloseButtonUrl = "00070101";
dynDialog.MinimizeButtonUrl = "00070102";
dynDialog.AllowResize = true;
dynDialog.BorderWidth = 1;
dynDialog.RestoreButtonUrl = "00070103";
dynDialog.ShadowDepth = 3;
dynDialog.ResizeImageUrl = "00020014";
dynDialog.ContentUrl = "Search.aspx?c=";
dynDialog.ShowButton = "test";
dynDialog.IsModal = false;
eo_support
Posted: Sunday, June 24, 2007 8:55:52 AM
Rank: Administration
Groups: Administration

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

Your code is correct. The only part thing that's missing is you need to add the dialog into the page. For example:

Code: HTML/ASPX
<form runat="server" id="form1">
    <asp:Panel runat="server" id="Panel1"></asp:Panel>
</form>


You will then use Panel1.Controls.Add(dynDialog) to add the dialog into the page. It doesn't really matter whose Controls collection you add to because the real position of the dialog does not depend on that.

Thanks

Rabih
Posted: Sunday, June 24, 2007 9:21:45 AM
Rank: Member
Groups: Member

Joined: 6/24/2007
Posts: 14
I am very sorry, but the control is attached and i am pretty sure of that since i am receiving a duplication of IDs error message, the problem is why the control is not showing to the screen? I cannot view it at all, is it a styles issue? colors issue? or more complicated one?
eo_support
Posted: Sunday, June 24, 2007 9:25:56 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,098
I will need to see your code to find out. We've set up an online meeting for you if you don't mind to let us to take a look. Please see your private messages for the meeting link.
Rabih
Posted: Sunday, June 24, 2007 10:38:31 PM
Rank: Member
Groups: Member

Joined: 6/24/2007
Posts: 14
I am unable to setup the meeting since i am receiving an expiration message, thanks for your quick support


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.