Posts by Janderson Thomaz • 497 points
13 posts
-
0
votes1
answer106
viewsA: ASP MVC 5 - Image Upload Error "The input is not a Valid Base-64 string"
Try changing the name of the input image for "image" and so receive in controller. I think what happens is that you must be conflicting with property: public byte[] Imagem { get; set; }" with the…
asp.net-mvc-5answered Janderson Thomaz 497 -
1
votes1
answer344
viewsQ: IIS Validation Messages - Asp.Net MVC
I published my application on IIS, however, the validation messages are appearing in English. I already installed the Asp.Net MVC package in English in the link…
-
4
votes1
answer1358
viewsQ: Catch Penultimate record of a table with Entity Framework
How do I get the penultimate record from an Entity Framework table
-
2
votes1
answer163
viewsQ: Configure Scaffold to generate classes
You can configure Scaffold to generate classes other than the default (Controllers and Views) ?
-
8
votes1
answer591
viewsQ: Change the naming pattern of views that are generated by scaffold
I would like to change the nomenclature where scaffold generates views: Standard: Create.cshtml Delete.cshtml Details.cshtml Edit.cshtml Index.cshtml I want scaffolding to create that way:…
-
2
votes1
answer1567
viewsA: Error using Viewbag in Dropdownlistfor ASP NET MVC
It can be that the modelState is not valid and returns to view, without filling the Viewbag.Categoriaslist according to your code. Try to return Viewbag.Categoriaslist populated again if Modelstate…
-
2
votes1
answer1172
viewsA: Configure routes using areas in ASP.NET MVC 5
How I set the route this way "Adm/{controller}/{action}/{id}-{descricao}" When I passed by http://localhost/escola/Adm/EntradaDeUniformes/Exibir/1-Calça-Azul It didn’t work because "Blue" was…
-
2
votes1
answer1172
viewsQ: Configure routes using areas in ASP.NET MVC 5
I am trying to set a route using area as follows: At Routeconfig.Cs public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) {…
-
5
votes2
answers12739
viewsQ: Upload Only from Images
How to upload images only(.png and .jpeg)? Do not allow the choice of another file type. I’m using as per below: <input type="file" name="arquivos" class="btn btn-success" multiple/> At the…
html5asked Janderson Thomaz 497 -
7
votes2
answers5492
viewsQ: Relationship 1 to 1 with Entity Framework
I have 2 entities: Equipamento and Databook. A Equipamento can only have one Databook and a Databook is only for a Equipamento. How can I make this relationship with Entity Framework? Follows the…
-
2
votes1
answer1474
viewsQ: Login with Identity no MVC 5
I’m using MVC 5 and Identity for Login. I have a User class and want to log in with it, using the properties of this class for example the Record(User) property instead of the…
-
0
votes1
answer1215
viewsQ: 'Object' does not contain a definition for 'Action'
I am using MVC 5 with Identity to login, appeared this error that so far could not find a solution. Error happens in view _ExternalLoginsListPartial.cshtml…
-
-2
votes2
answers592
viewsA: Closing modalpopupextender at the button click
If the case is to close Modal, hide your modal in the button click event: SeuModal.Hide();