diff --git a/Visigo.Sharepoint.FormsBasedAuthentication/Visigo.Sharepoint.FormsBasedAuthentication/Layouts/FBA/MANAGEMENT/UserEdit.aspx b/Visigo.Sharepoint.FormsBasedAuthentication/Visigo.Sharepoint.FormsBasedAuthentication/Layouts/FBA/MANAGEMENT/UserEdit.aspx
index 909ffa4..630f3b0 100644
--- a/Visigo.Sharepoint.FormsBasedAuthentication/Visigo.Sharepoint.FormsBasedAuthentication/Layouts/FBA/MANAGEMENT/UserEdit.aspx
+++ b/Visigo.Sharepoint.FormsBasedAuthentication/Visigo.Sharepoint.FormsBasedAuthentication/Layouts/FBA/MANAGEMENT/UserEdit.aspx
@@ -31,11 +31,12 @@
+
-
+
diff --git a/Visigo.Sharepoint.FormsBasedAuthentication/Visigo.Sharepoint.FormsBasedAuthentication/Layouts/FBA/MANAGEMENT/UserEdit.aspx.cs b/Visigo.Sharepoint.FormsBasedAuthentication/Visigo.Sharepoint.FormsBasedAuthentication/Layouts/FBA/MANAGEMENT/UserEdit.aspx.cs
index f15ba3e..6b7b547 100644
--- a/Visigo.Sharepoint.FormsBasedAuthentication/Visigo.Sharepoint.FormsBasedAuthentication/Layouts/FBA/MANAGEMENT/UserEdit.aspx.cs
+++ b/Visigo.Sharepoint.FormsBasedAuthentication/Visigo.Sharepoint.FormsBasedAuthentication/Layouts/FBA/MANAGEMENT/UserEdit.aspx.cs
@@ -159,8 +159,15 @@ protected void OnSubmit(object sender, EventArgs e)
{
user.UnlockUser();
}
- Membership.UpdateUser(user);
-
+ try
+ {
+ Membership.UpdateUser(user);
+ }
+ catch (System.Configuration.Provider.ProviderException ex)
+ {
+ lblMessage.Text = ex.Message;
+ return;
+ }
// update sharepoint user info
if (spuser != null)
{
diff --git a/Visigo.Sharepoint.FormsBasedAuthentication/Visigo.Sharepoint.FormsBasedAuthentication/Layouts/FBA/MANAGEMENT/UserEdit.aspx.designer.cs b/Visigo.Sharepoint.FormsBasedAuthentication/Visigo.Sharepoint.FormsBasedAuthentication/Layouts/FBA/MANAGEMENT/UserEdit.aspx.designer.cs
index 51d0f71..7892145 100644
--- a/Visigo.Sharepoint.FormsBasedAuthentication/Visigo.Sharepoint.FormsBasedAuthentication/Layouts/FBA/MANAGEMENT/UserEdit.aspx.designer.cs
+++ b/Visigo.Sharepoint.FormsBasedAuthentication/Visigo.Sharepoint.FormsBasedAuthentication/Layouts/FBA/MANAGEMENT/UserEdit.aspx.designer.cs
@@ -31,31 +31,31 @@ public partial class UserEdit {
protected global::Microsoft.SharePoint.WebControls.EncodedLiteral TitleArea;
///
- /// txtUsername control.
+ /// lblMessage control.
///
///
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
///
- protected global::Microsoft.SharePoint.WebControls.InputFormTextBox txtUsername;
+ protected global::System.Web.UI.WebControls.Label lblMessage;
///
- /// InputFormRequiredFieldValidator1 control.
+ /// txtUsername control.
///
///
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
///
- protected global::Microsoft.SharePoint.WebControls.InputFormRequiredFieldValidator InputFormRequiredFieldValidator1;
+ protected global::Microsoft.SharePoint.WebControls.InputFormTextBox txtUsername;
///
- /// usernameMessage control.
+ /// InputFormRequiredFieldValidator1 control.
///
///
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
///
- protected global::System.Web.UI.WebControls.Label usernameMessage;
+ protected global::Microsoft.SharePoint.WebControls.InputFormRequiredFieldValidator InputFormRequiredFieldValidator1;
///
/// txtFullName control.