Search code examples
c#.netvb.netvisual-studio-lightswitch

Adding Custome validation Message at Screen side in LightSwitch 2011


I have small lightswitch application having CreateNewUser Screen.

Screen fields comes from Datatable added in DataSource, I have made all Validattion of fields at DataSource side However i have added one Custom Control in the screen named : Re-TypePassword.

Whenever user click on save button I want to match the Password and Re-TypePassword and want to prompt user a validation message if Password and Re-TypePassword are different.

how can i display that validation massage ? ( I mean i want to add validation message to Summary of messages that appears at the top of screen)

Thanks


Solution

  • One way is to add the -re type password- field to the database, then you can use the usual validation.

    Not the best way, but it's a way :)