Questions tagged as 'asp.net-mvc'

1
answer

Converting View Values to Controller

I need byte[]Descricao , when sent to my view , to display the text as string for the user to manipulate within TextArea , when I click in save I need to be converted back to byte[] to that Controller finds...
asked by 05.04.2017 / 03:03
1
answer

How to set a session timeout in web.config

Personal I need a timeout for my web.config that if the user is not tampering with the system it expires, if it is tampering with the system does not expire time. Is it possible to have something like this? <configuration> <system.w...
asked by 04.04.2017 / 17:04
2
answers

ASP.NET MVC - How to Change Name Attribute of TextBoxFor

Is it possible to change the field name generated by @Html.TextBoxFor ? I did not find anything in Portuguese related to that. I tried something like: @Html.TextBoxFor(x => x.ToDate, new { name = "to" }) If I do for example, for...
asked by 30.03.2017 / 21:04
1
answer

Save Token to User Machine

I did an integration with GoogleDrive and when doing all the authorization in the consent screen, it creates a token in the appdata of the user, however I put this application in Azure in VM . But when I crea...
asked by 29.03.2017 / 19:30
1
answer

How to download file via $ .ajax ()

This question arose from this post Sending data to an ActionResult from a different Controller from the current one answered by James S , I currently have this ActionResult that downloads file through a Post in a View and need to do th...
asked by 11.06.2017 / 19:10
2
answers

Unity installation is giving error

I installed Unity for DI and by NuGet is giving an error, which I do not understand, it seems to me that it points to NewtonSoft, see the error below:    Install-Package: An error occurred while retrieving package metadata   for 'Newtonsoft.J...
asked by 24.05.2017 / 15:52
1
answer

The ViewData item that has the key 'ManufacturerId' is of type 'System.Int64' but should be of type 'IEnumerableSelectListItem

I'm trying to develop an application in ASP.NET MCV 5. This snippet is returning this error message. @Html.DropDownList("FabricanteId", null, htmlAttributes: new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.Fabrica...
asked by 27.03.2017 / 18:47
1
answer

Disable event scheduling for fullcalendar month

I have a program and have schedule events for the month and week, I'm using fullcalendar jQuery, I'd like to disable event scheduling for the month. And schedule only by the week.     
asked by 13.03.2017 / 15:23
1
answer

ASP.NET MVC How to Manipulate Table Users Using Code First

I am studying MVC ASP.NET code first . I am a beginner and I have a probably basic doubt. When you start a project, it already creates a basic application, including the User table. I happen to want to make a relationship between this User ta...
asked by 13.03.2017 / 09:47
1
answer

JavaScript load PartialView passing a Model

I need to call a PartialView in my JavaScript but I'm not sure how. I'm using a plugin that in the variable TARGET receives a Div. And in my case, this Div I put in being a Partial View. My JS looks like this: var modal = new Custombox....
asked by 23.03.2017 / 15:59