locked
Send upper letter RRS feed

  • Question

  • How to send upper letter from screen to database in lightswitch ?
    Wednesday, November 6, 2013 1:51 PM

Answers

  • Hi

    Better validate your property from entity level. Go to entity designer, select your property and from Write Code dropdown choose <PROPERTY>_Validate method and write the below code

    partial void YourProperty_Validate(EntityValidationResultsBuilder results)
            {
                // results.AddPropertyError("<Error-Message>");
                if (!string.IsNullOrEmpty(YourProperty))
                    YourProperty = YourProperty.ToUpper();
            }

    Regards


    Rashmi Ranjan Panigrahi
    www.lightswitchspecial.com

    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”.
    This will help other users to find their answer quickly.

    • Marked as answer by Angie Xu Monday, November 18, 2013 12:24 PM
    Wednesday, November 6, 2013 5:25 PM