khalil-js

Java code posted by khalil
created at 19 Aug 17:26, updated at 20 Aug 12:01

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
eBusinessDialogAjax dlg = ControlCache["MY1"] as eBusinessDialogAjax;

if (dlg == null)
{
  eBusinessAjaxFakeItem c1 = new eBusinessAjaxFakeItem();
  c1.Initialize("das", 1, 1, 2, 2, null, "das", null, UserContext);
  dlg = new eBusinessDialogAjax();
  dlg.ID = "MY1";
  dlg.ContentControl = c1;
  dlg.HideEffect = JQueryUIEffects.explode;
  dlg.ShowEffect = JQueryUIEffects.puff;
  dlg.Width = 500;
  dlg.Height = 400;
  dlg.Resizable = false;
  dlg.Draggable = false;
  dlg.Position = new eJqueryUiNumericPosition(700, 200);
  dlg.AutoOpen = false;
  dlg.PostbackOnClose = true;

  dlg.HtmlAttributes.Add("dasd", "ffsdf");
  dlg.CssStyles.Add("background-color", "red");

  dlg.Close += new EventHandler(dlg_Close);
  dlg.LoadedFromCache += new EventHandler(dlg_LoadedFromCache);
  dlg.InsertedIntoCache += new EventHandler(dlg_InsertedInToCache);

  ControlCache["MY1"] = dlg;
}

divMain.Controls.Add(dlg);
918 Bytes in 4 ms with coderay