locked
Custom Validation in ENTITY FRAMEWORK Dynamic Data Web App RRS feed

  • Question

  • User1034852846 posted

     I'd like to do some custom validation in a Dynamic Data ENTITY FRAMEWORK application similar to the following:-

     

    if (ForeignKeyField = "A") { if (TextFieldA = "") { show error 'you must enter a value for field A'  } }

    if (ForeignKeyField = "B") { if (TextFieldB = "") { show error 'you must enter a value for field B'  } }

    if (ForeignKeyField = "C") { if (TextFieldC = "") { show error 'you must enter a value for field C'  } }

    etc.

     

    Can anyone point me in the right direction with links to existing examples or sample code ?

     

    Thanks in Advance !

    Monday, January 5, 2009 1:48 PM

Answers