Questions tagged as 'asp.net-mvc'

1
answer

How to open an external application in MVC3 from MVC3?

I have an application in MVC3 and I have to call another application hosted on the same server, it is in MVC5. Should I use an ajax? Should I make a iframe ? So: it has a menu that is MVC3 and has to be appearing. So I thought it cou...
asked by 13.08.2015 / 23:36
2
answers

Datepicker Asp.Net

I'm developing an application and would like to put the date field when it's clicked it displays a calendar for selection in this style: datapicker , but I do not know how to do it.     
asked by 22.06.2015 / 19:38
1
answer

Name editing is confirmed in the database but does not occur in the list

I am editing a database column and so far everything is fine, but when I load the table that contains this column using Include, it simply does not update the " Driver ", ID in the relationship but in the listing continues the name of the old re...
asked by 10.06.2015 / 22:07
1
answer

Use viewbags for metadata or place them in a ViewModel

In the scenario below, I have a View that depends on some ViewBags to fill options on selects html . When performing POST and in case something goes wrong in the register, the user is redirected to the same...
asked by 06.05.2015 / 13:18
1
answer

What is the best way to pass information to View?

I have the following code: public ActionResult AtualizaCliente(int id) { ViewBag.idFoto = new SelectList(dao.fotos, "idFoto", "Foto"); ViewBag.idInformacao = new SelectList(dao.informacoes, "idInformacao", "titulo");...
asked by 05.05.2015 / 04:27
1
answer

Internationalization, Localization and Globalization

I have a project that needs to work with internationalization, where the web application needs to be available in at least Portuguese and English , and perhaps also in Spanish. My biggest difficulty with this understanding is that when I s...
asked by 23.01.2015 / 12:56
2
answers

asp.net mvc Bad Request

When using the HttpStatusCodeResult class as a return to a Action , how do I redirect the user to a custom page based on the error?     
asked by 20.01.2015 / 19:04
1
answer

Problem when storing decimal values in SQL Server

I have a decimal field (18, 3) and in the application I use a JavaScript plugin to format the values entered, so I pass the value so pro SQL Server 45,000,000,000, when I look at what was registered was this 45000000000.000, or I mean, he put 3...
asked by 26.11.2014 / 17:29
1
answer

Remove EF dependencies without using the MyConfiguration class

I'm trying to create an application by removing all EF dependencies and leaving only the required layers: Repository and Application . I did a little project to test the operation before applying to the actual project to avoid complications,...
asked by 22.09.2015 / 20:22
1
answer

How to use @Html.ActionLink to create links to a multi-route?

I would like to use the @Html.ActionLink to create the following link: http://localhost:59278/video/categoria/new-movies/3 Being that my control is: [Route("video/categoria/new-movies/{page?}")] public async Task<ActionResult> Index...
asked by 05.11.2015 / 18:09