Questions tagged as 'asp.net-mvc-5'

1
answer

Action of type A is modified by clicking Action type B

Follow the code below: _Layout: <div class="navbar-collapse collapse"> <li>@Html.ActionLink("Início", "Index", "Home", new { @onmouseover = "this.style.color='#5cb85c';", @onmouseout = "this.style.color='';" })</li>...
asked by 17.05.2017 / 21:35
1
answer

Report with rotating mvc

I'm having trouble generating a report in mvc, using the rotary. The problem is that it generates the pdf, as if I have been ignoring the html, it is all unformatted. ob: for htm formatting, it's css in an external file. I'm calling it lik...
asked by 19.05.2017 / 03:43
0
answers

SqlDep_OnChange with SignalR does not work

Follow the code below: NotificationHub: Hub private readonly static ConnectionMapping<string> _connections = new ConnectionMapping<string>(); public void SendNotification(string who) { foreach (var connectionId in _connec...
asked by 02.06.2017 / 03:06
0
answers

Value shown in production other than development

I have an application in ASP.NET MVC with the Entity Framework with an Oracle database, and it is showing some wrong data, and this happens only in production, in Debug (locally) the data is brought right . This data is written from another s...
asked by 05.04.2017 / 14:38
0
answers

Problems generating a View in PDF using Rotating

I'm trying to learn how to make a View converted into PDF format so it can be printed or downloaded by a user. I read some posts and decided to follow the indication of a library called Revolving that seemed very simple to use. It actual...
asked by 06.04.2017 / 19:49
1
answer

Error handling does not work

In the config of my application I deleted the customErrors to do a test of an error that is difficult to replicate. And where the error should be I put a try: if (ModelState.IsValid) { db.TarefaHoras.Add(tarefaHora);...
asked by 01.04.2017 / 15:14
1
answer

How to change Text property of a Button within a for

I am having a question in ASP.NET, I am creating a loop of repetition inside the HTML so that 60 buttons appear, each with a different number in the Text, going from 0 to 59, and then I need to get that text and put it in a textbox. I was doing...
asked by 04.03.2017 / 20:56
5
answers

How to solve accentuation problems with ASP.NET MVC?

I'm having problems with accentuation in ASP.NET MVC 5. I'm using Visual Studio 2013 Professional and the .Net 4.5 application. SQL Server 2008 and Entity Framework 6. The browser is Google Chrome upgraded and Windows is 8.1. Example: W...
asked by 03.03.2014 / 00:22
2
answers

loading date time without javascript

I wanted to know if it is possible to send direct from the controller, for example the current date and time of the system without using javascript. Ex: <div class="form-group"> @Html.LabelFor(model => model.DataAvaliacao, htmlAtt...
asked by 01.02.2017 / 00:54
1
answer

Working with Currency (decimal)

I'm working on a project where I had to use decimal for Currency field. As the American standard and different from the Brazilian soon had some difficulties. I found some examples of how to deal with it, but I did not get much succe...
asked by 08.11.2014 / 03:18