private void DeleteSelectedExceptions()
 {
     try
     {
         var s = Request.Form["Exception"];
         if (s != null)
         {
             string[] positions = null;
             if (s.LastIndexOf(",") > 0)
             {
                 positions = s.Split(Convert.ToChar(","));
             }
             else if (!String.IsNullOrEmpty(s))
             {
                 positions = new[] {s};
             }
             var objLoggingController = new LogController();
             if (positions != null)
             {
                 var j = positions.Length;
                 for (var i = 0; i < positions.Length; i++)
                 {
                     j -= 1;
                     var excKey = positions[j].Split(Convert.ToChar("|"));
                     var objLogInfo = new LogInfo {LogGUID = excKey[0], LogFileID = excKey[1]};
                     objLoggingController.DeleteLog(objLogInfo);
                 }
             }
             UI.Skins.Skin.AddModuleMessage(this, Localization.GetString("DeleteSuccess", LocalResourceFile), ModuleMessage.ModuleMessageType.GreenSuccess);
         }
         BindPortalDropDown();
         BindData();
     }
     catch (Exception exc)
     {
         Exceptions.ProcessModuleLoadException(this, exc);
     }
 }
        private void DeleteSelectedExceptions()
        {
            try
            {
                
                string s = Request.Form["Exception"];
                if( s != null )
                {
                    string[] arrExcPositions = new string[0];
                    if( s.LastIndexOf( "," ) > 0 )
                    {
                        arrExcPositions = s.Split( Convert.ToChar( "," ) );
                    }
                    else if( s.Length > 0 )
                    {
                        arrExcPositions = new string[1];
                        arrExcPositions[0] = s;
                    }

                    LogController objLoggingController = new LogController();

                    int i;
                    int j = arrExcPositions.Length;
                    for( i = 1; i <= arrExcPositions.Length; i++ )
                    {
                        j--;
                        string[] excKey;
                        excKey = arrExcPositions[j].Split( Convert.ToChar( "|" ) );
                        LogInfo objLogInfo = new LogInfo();
                        objLogInfo.LogGUID = excKey[0];
                        objLogInfo.LogFileID = excKey[1];
                        objLoggingController.DeleteLog( objLogInfo );
                    }
                    UI.Skins.Skin.AddModuleMessage( this, Localization.GetString( "DeleteSuccess", this.LocalResourceFile ), ModuleMessageType.GreenSuccess );
                }
                BindPortalDropDown();
                BindData();
            }
            catch( Exception exc )
            {
                Exceptions.ProcessModuleLoadException( this, exc );
            }
        }