Posts by Thiago Ferreira • 171 points
5 posts
-
1
votes2
answers337
viewsA: Errors Model State Called Ajax
My suggestion: Since you are posting using Ajax and own a Model with properties and validations, you can continue to validate on the server side, but reload only the form. First Step: Turn your form…
asp.net-mvcanswered Thiago Ferreira 171 -
1
votes2
answers1579
viewsA: NOT IN in Inline using a sub-query
The problem in the order in which you are doing things. First, in this line: .Select(s => s.ClienteId) Here you are turning your entire LINQ query into a IEnumerable<int>, because you are…
-
0
votes1
answer687
viewsA: Could not create a System.Object type constant value. Only primitive types or enumeration types are supported in this context
Try changing your .Equals() for "==". Since you have variables that are probably of the type int?, may be giving problem because the program may be trying to do .Equals() with incorrect types (…
-
1
votes1
answer1494
viewsA: A potentially Dangerous Request.Path value was Detected from the client
What is your action Create expect to receive parameter? A string called reference or a Datetime called reference? Furthermore, it is good practice to use the third parameter of Url.Action() to pass…
-
1
votes2
answers1539
viewsA: Pass Select html value to Controller via Post
How are you loading the list of cities? If Cidadeid exists in your Model, you can replace the attribute select by the Htmlhelper DropDownFor, thus: @Html.DropDownListFor(model => model.CidadeId,…
asp.net-mvcanswered Thiago Ferreira 171