Posts by Leonel Sanches da Silva • 88,623 points
2,010 posts
-
2
votes1
answer883
viewsA: How to call Actionresult from another Area with an html link?
Use: @Html.ActionLink("Texto do Link", "Acao", new { area = "Tal", controller = "ControllerDaAreaTal" } )
-
2
votes2
answers4499
viewsA: Save images in repository and recover it through a Path with C#
Follow code example of an application my ASP.NET MVC5 and the package Imageresizer. I made a model called ProductPicture where each record keeps the image of a product and its respective thumbnail…
-
2
votes1
answer741
viewsQ: Copying one Datepicker to another and incrementing one year (jQuery UI)
In a project of mine, I have two fields configured as datepicker (jQuery UI). Only the first is editable (InitialDate). The second (FinalDate) must have the same value as InitialDate plus one year.…
-
2
votes1
answer386
viewsA: Menu creation using Web2py?
To create menu using the default template of web2py just put it on the line: reponse.menu = [(T('Home'), False, URL('default','index')), (T('About'),False,URL('default','what')),…
-
2
votes2
answers442
viewsA: Code First with Complex Types, when making Scaffolding the properties of Complex Types are not found in the views
This way you have shaped the classes, no. In MVC, the classes within Models are practically considered as tables in a relational database or collections in non-relationships. Therefore, their…
-
11
votes6
answers52587
viewsA: How do I use a database on an HTML site?
The question is quite broad, but basically you can use any database on a site because HTML is a markup language that has nothing to do with the database. Developing Web has 3 basic parts: HTTP…
-
4
votes2
answers4977
viewsA: Using the JPA repository
To DAO is a design pattern that abstracts the data persistence. A Repository is an abstraction of a collection of objects and their respective methods of handling. Both can exist in the same…
-
8
votes3
answers1774
viewsA: Update generating duplicate key error
This error means you loaded the object professor twice (on different objects). During a method, you can only load the object once. If you really need to load the object twice (for example, when you…
-
2
votes1
answer97
viewsA: How do you model 1x0 relations. 1 (optional one-to-one) in the Entity Framework Code First?
Suppose two models: Drivers (drivers) and Vehicles (vehicles). Also suppose a driver doesn’t necessarily have a vehicle, so you can create a driver first and then assign a vehicle to him: Models:…
-
0
votes4
answers967
viewsA: Accessing dynamically generated form fields.
If your system is ASP.NET MVC with Razor or Web Forms, this package solves everything you need: https://www.nuget.org/packages/BeginCollectionItem/ An example of usage is below (already translated…
javascriptanswered Leonel Sanches da Silva 88,623