Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Forum has moved

New location: CSLA .NET forum

CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • Reauthorise user before saving / updating

    rated by 0 users
    Answered (Not Verified) This post has 0 verified answers | 1 Reply | 0 Followers

    Not Ranked
    11 Posts
    timster posted on Sat, Aug 9 2014 7:37 AM

    I need to prompt user for there password before changing critical information on a form.

    I am use DevExpress ASP.NET Data view in model edit form mode.

    I added a Password property on my Business Object which is NOT loaded from database and acts pretty much as a write only field.  This password is sent to database on update for validation in my update stored proc.

    How do I create a business rule that requires this field to be present if any properties change?  Would using the IsDirty property in the evaluation of the business rule help?

    Kind Regards


    All Replies

    Top 10 Contributor
    4,106 Posts
    Answered (Not Verified) Andy replied on Wed, Aug 13 2014 7:31 AM
    Suggested by JonnyBee

    Yes, your business rule would check IsDirty and only require a value if its true.

    Page 1 of 1 (2 items) | RSS

    Copyright (c) 2006-2014 Marimer LLC. All rights reserved.
    Email admin@lhotka.net for support.
    Powered by Community Server (Non-Commercial Edition), by Telligent Systems