This is used when you have to ensure that two or more properties interact correctly. Model level validation messagesĪnother approach to validate a model is model level validation. If the bool parameter is true, only model-level errors will be shown. Html.ValidationSummary(bool, string) Displays a message before the validation errors. Html.ValidationSummary(string) Displays a message (contained in the string parameter) before a summary of all the validation errors. If the parameter is false, then all errors are shown. Overloaded Method Description Html.ValidationSummary() Generates a summary for all validation errors Html.ValidationSummary(bool) If the bool parameter is true, then only model-level errors are displayed.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |