Questions tagged as 'asp.net-mvc'

1
answer

HTML attributes in webgrid lines

Is it possible to include the data-id-tarefa="@item.id" attribute within each TR using the WebGrid? I can include in the JavaScript the attribute, but all the TRs return the same value of the id inside the attribute and what I need is the...
asked by 11.06.2015 / 13:55
1
answer

Decrement in an ASP.NET MVC table field

I'm developing course manager in asp.net MVC , and the course table has a qtd_vagas field. I would like to know how I can do a count - ( or some other form of Decrement ) this field. For example: In the list of courses will appear the cours...
asked by 19.05.2015 / 05:45
1
answer

Hidden Field Encryption in MVC - How to decrypt more than one property on the server side

Hello I'm developing a mvc 5 web application and in some cases I need to insert in the view fields @ Html.HiddenFor, only I do not want to show the value to the user if he views the html code, so fine I I was able to encrypt the values that go t...
asked by 22.09.2015 / 22:42
1
answer

JavaScript and ActiveX Permissions in IIS

Hello, an application in Asp.Net MVC uses Scripting.FileSystemObject to create text files. On the development machine it works normally, this application was published on a server with IIS and also worked normally, but when I was publishing it o...
asked by 31.07.2015 / 21:25
1
answer

How do I register dependencies with Windsor that are in different layers of the application?

How to register dependencies with Windsor that are in different layers of the application? I do not want to be referencing all the application layers in the presentation layer as most do around. I have the following error that I know becau...
asked by 22.05.2015 / 19:55
1
answer

Ensure that HttpConfiguration.EnsureInitialized ()

Good Night! I'm studying ASP.NET (I come from java) and I'm a bit confused by all that. I'm trying to create an endpoint to return the list of clients from my database, however, I can not initialize it at all! When I run the project, it...
asked by 28.10.2015 / 00:58
1
answer

Saving data for a while

Is there any way I can use the javascript cookies to store information for 3 hours for example? In my scenario, I need to have a warning page, but I do not need to save those records to the database. I need these warnings to remain for at l...
asked by 18.12.2014 / 18:32
2
answers

Is it possible to send a list of javascript objects to a function in the contoller?

I am returning a list of data of an object type (GAR) of the actualizarGARs function of the controller: var listaGARTratadas = db.GAR.ToList(); return Json(listaGARTratadas); And in javascript I wanted to send this list of objects ba...
asked by 25.08.2014 / 17:48
2
answers

Error When Adding Controller in ASP.NET MVC

Good morning, I'm making a small solution using ASP.NET MVC with Entity Framework 6 to attend a work from my course. I created the context class: namespace WillianRibeiro.EstudandoMVC.Web.Data{ public class EstudandoMVCContext : DbContext {...
asked by 10.08.2017 / 16:42
1
answer

MSBUILD - How to publish multiple projects from a single Solution (OSGI)

I need help to publish my projects. I am using OSGI to modulate my application, consequently in my solution there are several WEB applications.    Ex: Solution A 1. Aplicação 1 2. Aplicação 2 3. Aplicação 3 4. Aplicação Principal Th...
asked by 06.06.2014 / 15:15