Exemplo n.º 1
0
 /// <summary>
 /// Occurs when an organization hyperlink is clicked.
 /// Switches to selected organization and redirects to the default page.
 /// </summary>
 /// <param name="sourceRow">The sourceRow of the event.</param>
 /// <param name="e">An DataListCommandEventArgs that contains event data.</param>
 protected void OrganizationList_ItemCommand(object source, CommandEventArgs e)
 {
     if (e == null)
     {
         return;
     }
     if (e.CommandName.Equals("Select"))
     {
         ActiveOrganizationControl.SelectOrganization((Guid)Support.ConvertStringToType(e.CommandArgument.ToString(), typeof(Guid)), null, false, ErrorPanel);
     }
 }
Exemplo n.º 2
0
 protected void OrganizationList_ItemDataBound(object sender, DataListItemEventArgs e)
 {
     ActiveOrganizationControl.OrganizationListItemDataBound(e);
 }