Action
Sunflowers Van Gogh Sunflowers (original title, in French: Tournesols) are the subject of two series of still life paintings by the Dutch painter Vincent van Gogh. The earlier series executed in Paris in 1887 gives the flowers lying on the ground, while the second set executed a year later in Arles shows bouquets of sunflowers in a vase. In the artist's mind both sets were linked by the name of his friend Paul Gauguin, who acquired two of the Paris versions. About eight months later Van Gogh hoped to welcome and to impress Gauguin again with Sunflowers, now part of the painted d├ęcoration he prepared for the guestroom of his Yellow House where Gauguin was supposed to stay in Arles. After Gauguin's departure, Van Gogh imagined the two major versions as wings of the Berceuse Triptych, and finally he included them in his exhibit at Les XX in Bruxelles.

Events: clear log container

Info
   1:  <%@ Page Language="C#" AutoEventWireup="true" Title="AtomicDialog -- Server Side Events" CodeBehind="ServerSideEvents.aspx.cs"
   2:      Inherits="Atom.Website.Samples.AtomicDialog.ServerSideEvents" %>
   3:   
   4:  <%@ Register Src="../Source.ascx" TagName="Source" TagPrefix="sample" %>
   5:  <%@ Register Assembly="Atom.Web" Namespace="Atom.Web.UI.WebControls" TagPrefix="atom" %>
   6:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   7:  <html xmlns="http://www.w3.org/1999/xhtml">
   8:  <head id="Header1" runat="server">
   9:      <link rel="Shortcut Icon" type="image/ico" href="../images/icon.png" /> 
  10:      <!-- The jQuery UI theme that will be used by the components. -->
  11:      <link href="../themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
  12:      <!-- jQuery runtime minified -->
  13:      <script src="../Scripts/jquery-1.9.1.js" type="text/javascript"></script>
  14:      <!-- jQuery UI runtime minified, client-side javascript of the components.-->
  15:      <script src="../Scripts/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
  16:      <!-- This style reference is needed only for the current example. -->
  17:      <link href="../css/example.css" rel="stylesheet" type="text/css" />
  18:      <script type="text/javascript">  
  19:          $(document).ready(function(){
  20:              $('#Open').button().click(function(){
  21:                  <%=AtomicDialog1.ClientID %>.dialog('open');  
  22:              });  
  23:          });
  24:   
  25:          function ClearLogContainer() {
  26:              $("#<%= LogContainer.ClientID %>").val('');
  27:          }
  28:      </script>
  29:  </head>
  30:  <body>
  31:      <form id="form1" runat="server">
  32:      <fieldset>
  33:          <legend>Action</legend>
  34:          <input type="button" id="Open" value="Open" />
  35:      </fieldset>
  36:      <div>
  37:          <atom:AtomicDialog runat="server" ID="AtomicDialog1" OnDialogClosed="AtomicDialog1_DialogClosed"
  38:              OnDialogClosing="AtomicDialog1_DialogClosing" OnDialogMoved="AtomicDialog1_DialogMoved"
  39:              OnDialogMoving="AtomicDialog1_DialogMoving" OnDialogResized="AtomicDialog1_DialogResized"
  40:              OnDialogResizing="AtomicDialog1_DialogResizing" Height="487" Width="493" Title="Sunflowers Van Gogh">
  41:              <Template>
  42:                  <img src="../images/art/sunflowers_van_gogh.gif" alt="Sunflowers Van Gogh" title="Sunflowers Van Gogh"
  43:                      class="dialog-image" />
  44:                  <span>Sunflowers (original title, in French: Tournesols) are the subject of two series
  45:                      of still life paintings by the Dutch painter Vincent van Gogh. The earlier series
  46:                      executed in Paris in 1887 gives the flowers lying on the ground, while the second
  47:                      set executed a year later in Arles shows bouquets of sunflowers in a vase. In the
  48:                      artist's mind both sets were linked by the name of his friend Paul Gauguin, who
  49:                      acquired two of the Paris versions. About eight months later Van Gogh hoped to welcome
  50:                      and to impress Gauguin again with Sunflowers, now part of the painted d├ęcoration
  51:                      he prepared for the guestroom of his Yellow House where Gauguin was supposed to
  52:                      stay in Arles. After Gauguin's departure, Van Gogh imagined the two major versions
  53:                      as wings of the Berceuse Triptych, and finally he included them in his exhibit at
  54:                      Les XX in Bruxelles.</span>
  55:              </Template>
  56:          </atom:AtomicDialog>
  57:      </div>
  58:      <br />
  59:      <fieldset>
  60:          <legend>Events:</legend><a href="javascript:void(0);" style="float: right;" onclick="ClearLogContainer()">
  61:              clear log container</a>
  62:          <asp:TextBox ID="LogContainer" runat="server" TextMode="MultiLine" Width="100%" Text=""
  63:              Height="150px"></asp:TextBox>
  64:      </fieldset>
  65:      <sample:Source ID="Code" runat="server" />
  66:      </form>
  67:  </body>
  68:  </html>
   1:  using System;
   2:  using System.Collections.Generic;
   3:  using System.Linq;
   4:  using System.Web;
   5:  using System.Web.UI;
   6:  using System.Web.UI.WebControls;
   7:  using Atom.Web.UI.WebControls;
   8:   
   9:  namespace Atom.Website.Samples.AtomicDialog
  10:  {
  11:      public partial class ServerSideEvents : System.Web.UI.Page
  12:      {
  13:          protected void Page_Load(object sender, EventArgs e)
  14:          {
  15:   
  16:          }
  17:   
  18:          protected void AtomicDialog1_DialogClosed(object sender,  DialogClosedEventArgs e)
  19:          {
  20:              LogContainer.Text += string.Format("DialogClosed at {0}\n", DateTime.Now.ToString("HH:mm:ss"));
  21:          }
  22:   
  23:          protected void AtomicDialog1_DialogClosing(object sender,  DialogClosingEventArgs e)
  24:          {
  25:              LogContainer.Text += string.Format("DialogClosing at {0}\n", DateTime.Now.ToString("HH:mm:ss"));
  26:          }
  27:   
  28:          protected void AtomicDialog1_DialogMoved(object sender,  DialogMovedEventArgs e)
  29:          {
  30:              LogContainer.Text += string.Format("DialogMoved at {0}\n", DateTime.Now.ToString("HH:mm:ss"));
  31:          }
  32:   
  33:          protected void AtomicDialog1_DialogMoving(object sender,  DialogMovingEventArgs e)
  34:          {
  35:              LogContainer.Text += string.Format("DialogMoving at {0}\n", DateTime.Now.ToString("HH:mm:ss"));
  36:          }
  37:   
  38:          protected void AtomicDialog1_DialogResized(object sender,  DialogResizedEventArgs e)
  39:          {
  40:              LogContainer.Text += string.Format("DialogResized at {0}\n", DateTime.Now.ToString("HH:mm:ss"));
  41:          }
  42:   
  43:          protected void AtomicDialog1_DialogResizing(object sender,  DialogResizingEventArgs e)
  44:          {
  45:              LogContainer.Text += string.Format("DialogResizing at {0}\n", DateTime.Now.ToString("HH:mm:ss"));
  46:          }
  47:      }
  48:  }
   1:  Imports System
   2:  Imports System.Collections.Generic
   3:  Imports System.Linq
   4:  Imports System.Web
   5:  Imports System.Web.UI
   6:  Imports System.Web.UI.WebControls
   7:  Imports Atom.Web.UI.WebControls
   8:  Namespace Atom.Website.Samples.AtomicDialog
   9:      Public Partial Class ServerSideEvents
  10:          Inherits System.Web.UI.Page
  11:          Protected Sub Page_Load(sender As Object, e As EventArgs)
  12:          End Sub
  13:          Protected Sub AtomicDialog1_DialogClosed(sender As Object, e As DialogClosedEventArgs)
  14:              LogContainer.Text += String.Format("DialogClosed at {0}" & vbLf, DateTime.Now.ToString("HH:mm:ss"))
  15:          End Sub
  16:          Protected Sub AtomicDialog1_DialogClosing(sender As Object, e As DialogClosingEventArgs)
  17:              LogContainer.Text += String.Format("DialogClosing at {0}" & vbLf, DateTime.Now.ToString("HH:mm:ss"))
  18:          End Sub
  19:          Protected Sub AtomicDialog1_DialogMoved(sender As Object, e As DialogMovedEventArgs)
  20:              LogContainer.Text += String.Format("DialogMoved at {0}" & vbLf, DateTime.Now.ToString("HH:mm:ss"))
  21:          End Sub
  22:          Protected Sub AtomicDialog1_DialogMoving(sender As Object, e As DialogMovingEventArgs)
  23:              LogContainer.Text += String.Format("DialogMoving at {0}" & vbLf, DateTime.Now.ToString("HH:mm:ss"))
  24:          End Sub
  25:          Protected Sub AtomicDialog1_DialogResized(sender As Object, e As DialogResizedEventArgs)
  26:              LogContainer.Text += String.Format("DialogResized at {0}" & vbLf, DateTime.Now.ToString("HH:mm:ss"))
  27:          End Sub
  28:          Protected Sub AtomicDialog1_DialogResizing(sender As Object, e As DialogResizingEventArgs)
  29:              LogContainer.Text += String.Format("DialogResizing at {0}" & vbLf, DateTime.Now.ToString("HH:mm:ss"))
  30:          End Sub
  31:      End Class
  32:  End Namespace