Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
ඕනම රටකට සෙට් වෙන CV එකක්
ErMurazor
Updated:
Saturday at 9:50 AM
Hambantota
7 Acres Beachfront Land For Sell DownSouth , PerPerch Price 420 000
1024 Digital
Updated:
Wednesday at 11:57 AM
Baseus PI LITE INDOOR CAMERA
ErMurazor
Updated:
Oct 12, 2026
Ad icon
Colombo
Hard Disk For Sale
mazza
Updated:
Oct 10, 2026
land for sale
justasking
Updated:
Oct 10, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
C#.NET Sinhalen 8- Validation and Object Models
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Kasun k" data-source="post: 20608076" data-attributes="member: 181050"><p><span style="font-size: 15px"><span style="color: DarkGreen">How do you know the ModelState is valid. You have to decorate the model properties with attributes and then if the models is not meeting the validation requirements, it will return the error in the response. Check the below link </span></span></p><p></p><p><a href="http://www.prideparrot.com/blog/archive/2012/4/model_validation_in_asp_net_mvc" target="_blank">http://www.prideparrot.com/blog/archive/2012/4/model_validation_in_asp_net_mvc</a></p><p></p><p><span style="font-size: 15px"><span style="color: DarkGreen">If you just do ModelState.IsValid() it will just validate the json(hoping you are passing json to the action method).</span></span></p></blockquote><p></p>
[QUOTE="Kasun k, post: 20608076, member: 181050"] [SIZE="4"][COLOR="DarkGreen"]How do you know the ModelState is valid. You have to decorate the model properties with attributes and then if the models is not meeting the validation requirements, it will return the error in the response. Check the below link [/COLOR][/SIZE] [URL="http://www.prideparrot.com/blog/archive/2012/4/model_validation_in_asp_net_mvc"]http://www.prideparrot.com/blog/archive/2012/4/model_validation_in_asp_net_mvc[/URL] [SIZE="4"][COLOR="DarkGreen"]If you just do ModelState.IsValid() it will just validate the json(hoping you are passing json to the action method).[/COLOR][/SIZE] [/QUOTE]
Insert quotes…
Verification
Dawasata paya keeyak thibeda?
Post reply
Top
Bottom