Action

Jules Verne Jules Gabriel Verne (French pronunciation: February 8, 1828 – March 24, 1905) was a French author who pioneered the science fiction genre. He is best known for his novels Twenty Thousand Leagues Under the Sea (1870), A Journey to the Center of the Earth (1864), and Around the World in Eighty Days (1873). Verne wrote about space, air, and underwater travel before air travel and practical submarines were invented, and before practical means of space travel had been devised. He is the second most translated author in the world (after Agatha Christie). Some of his books have also been made into live-action and animated films and television shows. Verne is often referred to as the "Father of Science Fiction", a title sometimes shared with Hugo Gernsback and H. G. Wells.
Edgar Allan Poe

Edgar Allan Poe (born Edgar Poe; January 19, 1809 – October 7, 1849) was an American author, poet, editor and literary critic, considered part of the American Romantic Movement. Best known for his tales of mystery and the macabre, Poe was one of the earliest American practitioners of the short story and is considered the inventor of the detective fiction genre. He is further credited with contributing to the emerging genre of science fiction. He was the first well-known American writer to try to earn a living through writing alone, resulting in a financially difficult life and career.

He was born as Edgar Poe in Boston, Massachusetts; he was orphaned young when his mother died shortly after his father abandoned the family. Poe was taken in by John and Frances Allan, of Richmond, Virginia, but they never formally adopted him. He attended the University of Virginia for one semester but left due to lack of money. After enlisting in the Army and later failing as an officer's cadet at West Point, Poe parted ways with the Allans. His publishing career began humbly, with an anonymous collection of poems, Tamerlane and Other Poems (1827), credited only to "a Bostonian".

Hans Christian Andersen

Hans Christian Andersen (Danish pronunciation: referred to using the initials H. C. Andersen in Denmark and the rest of Scandinavia; April 2, 1805 – August 4, 1875) was a Danish author, fairy tale writer, and poet noted for his children's stories. These include "The Steadfast Tin Soldier," "The Snow Queen," "The Little Mermaid," "Thumbelina," "The Little Match Girl," and "The Ugly Duckling."

s During his lifetime he was acclaimed for having delighted children worldwide, and was feted by royalty. His poetry and stories have been translated into more than 150 languages. They have inspired motion pictures, plays, ballets, and animated films.

William Shakespeare

William Shakespeare (baptised 26 April 1564; died 23 April 1616) was an English poet and playwright, widely regarded as the greatest writer in the English language and the world's pre-eminent dramatist. He is often called England's national poet and the "Bard of Avon". His surviving works, including some collaborations, consist of about 38 plays, 154 sonnets, two long narrative poems, and several other poems. His plays have been translated into every major living language and are performed more often than those of any other playwright.

Shakespeare was born and brought up in Stratford-upon-Avon. At the age of 18, he married Anne Hathaway, with whom he had three children: Susanna, and twins Hamnet and Judith. Between 1585 and 1592, he began a successful career in London as an actor, writer, and part owner of a playing company called the Lord Chamberlain's Men, later known as the King's Men. He appears to have retired to Stratford around 1613 at age 49, where he died three years later. Few records of Shakespeare's private life survive, and there has been considerable speculation about such matters as his physical appearance, sexuality, religious beliefs, and whether the works attributed to him were written by others.


Events: clear log container


Info
   1:  <%@ Page Language="C#" AutoEventWireup="true" Title="AtomicTabs -- Server Side Events" CodeBehind="ServerSideEvents.aspx.cs"
   2:      Inherits="Atom.Website.Samples.AtomicTabs.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:          function ClearLogContainer() {
  20:              $("#<%= LogContainer.ClientID %>").val('');
  21:          }
  22:      </script>
  23:  </head>
  24:  <body>
  25:      <form id="form1" runat="server">
  26:      <fieldset>
  27:          <legend>Action</legend>
  28:          <asp:CheckBox Text="Allow move" runat="server" ID="AllowMove" Checked="true" AutoPostBack="true"
  29:              OnCheckedChanged="AllowMove_CheckedChanged" />
  30:          <asp:CheckBox Text="Allow remove" runat="server" ID="AllowRemove" Checked="true"
  31:              AutoPostBack="true" OnCheckedChanged="AllowRemove_CheckedChanged" />
  32:      </fieldset>
  33:      <br />
  34:      <div>
  35:          <atom:AtomicTabs ID="AtomicTabs1" runat="server" OnSelectedIndexChanged="AtomicTabs1_SelectedIndexChanged"
  36:              OnSelectedIndexChanging="AtomicTabs1_SelectedIndexChanging" OnTabMoved="AtomicTabs1_TabMoved"
  37:              OnTabRemoved="AtomicTabs1_TabRemoved" OnTabRemoving="AtomicTabs1_TabRemoving"
  38:              AllowMove="true" AllowRemove="true">
  39:              <Tabs>
  40:                  <atom:TabItem runat="server" Enable="True" Header="Jules Verne">
  41:                      <Template>
  42:                          <div class="tab-example-content">
  43:                              <img src="../images/authors/jules_verne.jpg" alt="Jules Verne" title="Jules Verne"
  44:                                  class="right-side-image" />
  45:                              <span>Jules Gabriel Verne (French pronunciation: February 8, 1828 – March 24, 1905)
  46:                                  was a French author who pioneered the science fiction genre. He is best known for
  47:                                  his novels Twenty Thousand Leagues Under the Sea (1870), A Journey to the Center
  48:                                  of the Earth (1864), and Around the World in Eighty Days (1873). Verne wrote about
  49:                                  space, air, and underwater travel before air travel and practical submarines were
  50:                                  invented, and before practical means of space travel had been devised. He is the
  51:                                  second most translated author in the world (after Agatha Christie). Some of his
  52:                                  books have also been made into live-action and animated films and television shows.
  53:                                  Verne is often referred to as the "Father of Science Fiction", a title sometimes
  54:                                  shared with Hugo Gernsback and H. G. Wells.</span>
  55:                          </div>
  56:                      </Template>
  57:                  </atom:TabItem>
  58:                  <atom:TabItem runat="server" Enable="True" Header="Edgar Allan Poe">
  59:                      <Template>
  60:                          <div class="tab-example-content">
  61:                              <img src="../images/authors/allan_poe.jpg" alt="Edgar Allan Poe" title="Edgar Allan Poe"
  62:                                  class="right-side-image" />
  63:                              <span>
  64:                                  <p>
  65:                                      Edgar Allan Poe (born Edgar Poe; January 19, 1809 – October 7, 1849) was an American
  66:                                      author, poet, editor and literary critic, considered part of the American Romantic
  67:                                      Movement. Best known for his tales of mystery and the macabre, Poe was one of the
  68:                                      earliest American practitioners of the short story and is considered the inventor
  69:                                      of the detective fiction genre. He is further credited with contributing to the
  70:                                      emerging genre of science fiction. He was the first well-known American writer to
  71:                                      try to earn a living through writing alone, resulting in a financially difficult
  72:                                      life and career.</p>
  73:                                  <p>
  74:                                      He was born as Edgar Poe in Boston, Massachusetts; he was orphaned young when his
  75:                                      mother died shortly after his father abandoned the family. Poe was taken in by John
  76:                                      and Frances Allan, of Richmond, Virginia, but they never formally adopted him. He
  77:                                      attended the University of Virginia for one semester but left due to lack of money.
  78:                                      After enlisting in the Army and later failing as an officer's cadet at West Point,
  79:                                      Poe parted ways with the Allans. His publishing career began humbly, with an anonymous
  80:                                      collection of poems, Tamerlane and Other Poems (1827), credited only to "a Bostonian".
  81:                                      <p>
  82:                              </span>
  83:                          </div>
  84:                      </Template>
  85:                  </atom:TabItem>
  86:                  <atom:TabItem runat="server" Enable="True" Header="Hans Christian Andersen">
  87:                      <Template>
  88:                          <div class="tab-example-content">
  89:                              <img src="../images/authors/christian_andersen.jpg" alt="Hans Christian Andersen"
  90:                                  title="Hans Christian Andersen" class="left-side-image" />
  91:                              <span>
  92:                                  <p>
  93:                                      Hans Christian Andersen (Danish pronunciation: referred to using the initials H.
  94:                                      C. Andersen in Denmark and the rest of Scandinavia; April 2, 1805 – August 4, 1875)
  95:                                      was a Danish author, fairy tale writer, and poet noted for his children's stories.
  96:                                      These include "The Steadfast Tin Soldier," "The Snow Queen," "The Little Mermaid,"
  97:                                      "Thumbelina," "The Little Match Girl," and "The Ugly Duckling."</p>
  98:                                  <p>
  99:                                      s During his lifetime he was acclaimed for having delighted children worldwide,
 100:                                      and was feted by royalty. His poetry and stories have been translated into more
 101:                                      than 150 languages. They have inspired motion pictures, plays, ballets, and animated
 102:                                      films.</p>
 103:                              </span>
 104:                          </div>
 105:                      </Template>
 106:                  </atom:TabItem>
 107:                  <atom:TabItem runat="server" Enable="True" Header="William Shakespeare">
 108:                      <Template>
 109:                          <div class="tab-example-content">
 110:                              <img src="../images/authors/william_shakespeare.jpg" alt="William Shakespeare" title="William Shakespeare"
 111:                                  class="right-side-image" />
 112:                              <span>
 113:                                  <p>
 114:                                      William Shakespeare (baptised 26 April 1564; died 23 April 1616) was an English
 115:                                      poet and playwright, widely regarded as the greatest writer in the English language
 116:                                      and the world's pre-eminent dramatist. He is often called England's national poet
 117:                                      and the "Bard of Avon". His surviving works, including some collaborations, consist
 118:                                      of about 38 plays, 154 sonnets, two long narrative poems, and several other poems.
 119:                                      His plays have been translated into every major living language and are performed
 120:                                      more often than those of any other playwright.
 121:                                  </p>
 122:                                  <p>
 123:                                      Shakespeare was born and brought up in Stratford-upon-Avon. At the age of 18, he
 124:                                      married Anne Hathaway, with whom he had three children: Susanna, and twins Hamnet
 125:                                      and Judith. Between 1585 and 1592, he began a successful career in London as an
 126:                                      actor, writer, and part owner of a playing company called the Lord Chamberlain's
 127:                                      Men, later known as the King's Men. He appears to have retired to Stratford around
 128:                                      1613 at age 49, where he died three years later. Few records of Shakespeare's private
 129:                                      life survive, and there has been considerable speculation about such matters as
 130:                                      his physical appearance, sexuality, religious beliefs, and whether the works attributed
 131:                                      to him were written by others.
 132:                                  </p>
 133:                              </span>
 134:                          </div>
 135:                      </Template>
 136:                  </atom:TabItem>
 137:              </Tabs>
 138:          </atom:AtomicTabs>
 139:      </div>
 140:      <br />
 141:      <fieldset>
 142:          <legend>Events:</legend><a href="javascript:void(0);" style="float: right;" onclick="ClearLogContainer()">
 143:              clear log container</a>
 144:          <asp:TextBox ID="LogContainer" runat="server" TextMode="MultiLine" Width="100%" Text=""
 145:              Height="150px"></asp:TextBox>
 146:      </fieldset>
 147:      <br />
 148:      <sample:Source ID="Code" runat="server" />
 149:      </form>
 150:  </body>
 151:  </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:   
   8:  namespace Atom.Website.Samples.AtomicTabs
   9:  {
  10:      public partial class ServerSideEvents : System.Web.UI.Page
  11:      {
  12:          protected void Page_Load(object sender, EventArgs e)
  13:          {
  14:   
  15:          }
  16:   
  17:          protected void AllowMove_CheckedChanged(object sender, EventArgs e)
  18:          {
  19:              AtomicTabs1.AllowMove = AllowMove.Checked;
  20:          }
  21:   
  22:          protected void AllowRemove_CheckedChanged(object sender, EventArgs e)
  23:          {
  24:              AtomicTabs1.AllowRemove = AllowMove.Checked;
  25:          }
  26:   
  27:          protected void AtomicTabs1_SelectedIndexChanged(object sender, Web.UI.WebControls.TabsChangedEventArgs e)
  28:          {
  29:              LogContainer.Text += string.Format("SelectedIndexChanged OldIndex: {0} at {1}\n", e.OldIndex, DateTime.Now.ToString("HH:mm:ss"));
  30:          }
  31:   
  32:          protected void AtomicTabs1_SelectedIndexChanging(object sender, Web.UI.WebControls.TabsChangingEventArgs e)
  33:          {
  34:              LogContainer.Text += string.Format("SelectedIndexChanging NewIndex: {0} at {1}\n", e.NewIndex, DateTime.Now.ToString("HH:mm:ss"));
  35:          }
  36:   
  37:          protected void AtomicTabs1_TabMoved(object sender, EventArgs e)
  38:          {
  39:              LogContainer.Text += string.Format("TabMoved at {0}\n",  DateTime.Now.ToString("HH:mm:ss"));
  40:          }
  41:   
  42:          protected void AtomicTabs1_TabRemoved(object sender, Web.UI.WebControls.TabsRemovedEventArgs e)
  43:          {
  44:              LogContainer.Text += string.Format("TabRemoved TabIndex: {0} at {1}\n", e.TabIndex, DateTime.Now.ToString("HH:mm:ss"));
  45:          }
  46:   
  47:          protected void AtomicTabs1_TabRemoving(object sender, Web.UI.WebControls.TabsRemovingEventArgs e)
  48:          {
  49:              LogContainer.Text += string.Format("TabRemoving TabIndex: {0} at {1}\n", e.TabIndex, DateTime.Now.ToString("HH:mm:ss"));
  50:          }
  51:      }
  52:  }
   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:  Namespace Atom.Website.Samples.AtomicTabs
   8:      Public Partial Class ServerSideEvents
   9:          Inherits System.Web.UI.Page
  10:          Protected Sub Page_Load(sender As Object, e As EventArgs)
  11:          End Sub
  12:          Protected Sub AllowMove_CheckedChanged(sender As Object, e As EventArgs)
  13:              AtomicTabs1.AllowMove = AllowMove.Checked
  14:          End Sub
  15:          Protected Sub AllowRemove_CheckedChanged(sender As Object, e As EventArgs)
  16:              AtomicTabs1.AllowRemove = AllowMove.Checked
  17:          End Sub
  18:          Protected Sub AtomicTabs1_SelectedIndexChanged(sender As Object, e As Web.UI.WebControls.TabsChangedEventArgs)
  19:              LogContainer.Text += String.Format("SelectedIndexChanged OldIndex: {0} at {1}" & vbLf, e.OldIndex, DateTime.Now.ToString("HH:mm:ss"))
  20:          End Sub
  21:          Protected Sub AtomicTabs1_SelectedIndexChanging(sender As Object, e As Web.UI.WebControls.TabsChangingEventArgs)
  22:              LogContainer.Text += String.Format("SelectedIndexChanging NewIndex: {0} at {1}" & vbLf, e.NewIndex, DateTime.Now.ToString("HH:mm:ss"))
  23:          End Sub
  24:          Protected Sub AtomicTabs1_TabMoved(sender As Object, e As EventArgs)
  25:              LogContainer.Text += String.Format("TabMoved at {0}" & vbLf, DateTime.Now.ToString("HH:mm:ss"))
  26:          End Sub
  27:          Protected Sub AtomicTabs1_TabRemoved(sender As Object, e As Web.UI.WebControls.TabsRemovedEventArgs)
  28:              LogContainer.Text += String.Format("TabRemoved TabIndex: {0} at {1}" & vbLf, e.TabIndex, DateTime.Now.ToString("HH:mm:ss"))
  29:          End Sub
  30:          Protected Sub AtomicTabs1_TabRemoving(sender As Object, e As Web.UI.WebControls.TabsRemovingEventArgs)
  31:              LogContainer.Text += String.Format("TabRemoving TabIndex: {0} at {1}" & vbLf, e.TabIndex, DateTime.Now.ToString("HH:mm:ss"))
  32:          End Sub
  33:      End Class
  34:  End Namespace