Questions tagged as 'asp.net-mvc'

2
answers

IIS error when published application

When I publish my application, the following error appears:    This operation requires IIS integrated pipeline mode.       Description: An unhandled exception occurred during the execution of   the current web request. Please review the stac...
asked by 07.09.2015 / 15:12
1
answer

Format date and time and list according to the current date

This application has two tables: Students and Occurrences. To show the occurrences I can calmly ... But now I have a new business rule: Show the occurrences by date. So basically it would be the following, I would have to show the most current o...
asked by 12.08.2014 / 16:47
2
answers

HTML element within an ActionLink

Hello, I would like to know if you can create an HTML element within a ActionLink , for example: To create a link on a menu with ActionLink : @Html.ActionLink("Classificação Financeira", "Index", "ClassificacaoFinanceira") Bu...
asked by 06.10.2015 / 16:34
2
answers

Display decimal places (Currency) is rounding

I have an application where the price should go in int format without decimals. int Valor = (int)(produto.Valor * 100); //o produto.Valor é um decimal The problem is when I want to display this value in View For products like 0....
asked by 12.04.2016 / 18:41
2
answers

How can I clone cards on my site?

What is happening is as follows. I am currently trying to solve a big problem, two of the virtual stores of the company that I attend have problems with card cloning. I do not have much experience in this, but I will explain how the card system...
asked by 06.09.2018 / 19:19
2
answers

Format Display Data DisplayFor

I have a field in the database, DataHora, and wanted to display on the screen for the user, but in separate fields, being Date and Time. First displays the Date @Html.DisplayFor(modelItem => item.DataHora) Second displays Time @Html...
asked by 01.11.2016 / 03:02
1
answer

Refresh page automatically when accessing the system

I have a project, where I need the user to access the system, the system updates the page automatically, only once. I've found how to do this from time to time (5 in 5 seconds, for example), but I need to update only once. To update every 5 s...
asked by 03.02.2015 / 22:52
1
answer

ToUpper () with accents

I have a string , where I want to return it in uppercase, to standardize the information. I'm using ToUpper() . However, when this string has accents the text gets scrambled. How do I receive the text with normal accents, o...
asked by 14.01.2015 / 13:07
2
answers

How in ASP.NET 5 is this property defined?

In ASP.NET 5 in the Configure method of the Startup class we can get a reference to an object whose class implements IHostingEnvironment in the parameters. One of the properties of this class is EnvironmentName . I hav...
asked by 24.02.2015 / 00:11
1
answer

Save excel automatically generated in ASP MVC application

I am generating Excel files in my application using EPPlus . There is now a need to automatically save these files to a folder, regardless of whether or not you download them, so that you can keep track of these files. In my code I have: p...
asked by 24.04.2014 / 11:15