//----------------------------------------------- #endregion #region ---------------PrepareValidation--------------- //----------------------------------------------- //PrepareValidation //----------------------------------------------- protected void PrepareValidation() { //************************************************************************ if (!string.IsNullOrEmpty(currentModule.PhotoAvailableExtension)) { //Photo rxpPhoto.ValidationExpression = currentModule.GetPhotoValidationExpression(); rxpPhoto.ErrorMessage = Resources.AdminText.NotSuportedFileExtention + currentModule.PhotoAvailableExtension; } else { rxpPhoto.Visible = false; } //--------------------------------- //File if (!string.IsNullOrEmpty(currentModule.FileAvailableExtension)) { rxpFile.ValidationExpression = currentModule.GetFileValidationExpression(); rxpFile.ErrorMessage = Resources.AdminText.NotSuportedFileExtention + currentModule.FileAvailableExtension; } else { rxpFile.Visible = false; } //--------------------------------- //Video if (!string.IsNullOrEmpty(currentModule.VideoAvailableExtension)) { rxpVideo.ValidationExpression = currentModule.GetVideoValidationExpression(); rxpVideo.ErrorMessage = Resources.AdminText.NotSuportedFileExtention + currentModule.VideoAvailableExtension; } else { rxpVideo.Visible = false; } //--------------------------------- //Audio if (!string.IsNullOrEmpty(currentModule.AudioAvailableExtension)) { rxpAudio.ValidationExpression = currentModule.GetAudioValidationExpression(); rxpAudio.ErrorMessage = Resources.AdminText.NotSuportedFileExtention + currentModule.AudioAvailableExtension; } else { rxpAudio.Visible = false; } //--------------------------------- //Photo2 if (!string.IsNullOrEmpty(currentModule.Photo2AvailableExtension)) { rxpPhoto2.ValidationExpression = currentModule.GetPhoto2ValidationExpression(); rxpPhoto2.ErrorMessage = Resources.AdminText.NotSuportedFileExtention + currentModule.Photo2AvailableExtension; } else { rxpPhoto2.Visible = false; } //--------------------------------- }