public static void ClearMessageFromUI(SPWeb web)
 {
     if (HttpContext.Current != null)
     {
         CustomExceptions.SetMessageVariable(HttpContext.Current, web, String.Empty);
     }
 }
 public static void SetErrorMessageforLongOperations(String sMessage)
 {
     if (HttpContext.Current != null)
     {
         CustomExceptions.SetMessageVariable(HttpContext.Current, SPContext.Current.Web, sMessage + Constants.UNIQUE_KEY_CODE_FAILURE);
     }
 }
 public static void SetSuccessMessageforUI(SPWeb web, String sErrorMessage)
 {
     if (HttpContext.Current != null)
     {
         if (!String.IsNullOrEmpty(sErrorMessage))
         {
             String sMessage = Constants.SUCCESS_MESSAGE_SYMBOL + sErrorMessage;
             CustomExceptions.SetMessageVariable(HttpContext.Current, web, sMessage);
         }
     }
 }
 public static void SetErrorMessageforUI(String sErrorMessage)
 {
     if (HttpContext.Current != null)
     {
         if (!String.IsNullOrEmpty(sErrorMessage))
         {
             String sMessage = Constants.ERROR_MESSAGE_SYMBOL + sErrorMessage;
             CustomExceptions.SetMessageVariable(HttpContext.Current, SPContext.Current.Web, sMessage);
         }
     }
 }