Questions tagged as 'asp.net-mvc'

1
answer

Confirmation Mode

I need to create a modal with a warning to the user when he clicks the save button. I already have a similar one that is used for when the user clicks 'Delete' which is in my view / Delete <h4 class="modal-title">Atenção!</h4> <...
asked by 11.07.2014 / 16:21
1
answer

Use Signalr

Well I'm starting to venture into Signalr . I've decided to follow this Tutorial . Well after doing all the steps, running the project gives me the following error:    Unhandled exception at line 35, column 13 in   http: // localhos...
asked by 10.12.2014 / 17:51
2
answers

Send file from one server to another

The application is located on an X server. From a file upload I need the file to be sent to a Y server. But I can not find a solution for this. The application is in MVC asp net. To upload the file to the same server I use: [HttpPost]...
asked by 09.06.2014 / 18:31
1
answer

How to get the specific type of error returned by EntityFramework?

Following the question: How to intercept exceptions when working with the Entity Framework? Is it possible to get some type of error identifier? For example, Primary Key Violation, Foreign Key Inconsistency, and in my specific case, when it...
asked by 13.06.2014 / 03:52
2
answers

How to decode a Base64 image

I'm trying to decode an image, the string that comes as a parameter in the Image attribute of the post object is like this: "data: image / png; base64," and a bunch of letters, numbers, and symbols on the right, I want to decode and get the o...
asked by 09.06.2014 / 21:29
1
answer

Dynamic Attributes of an Entity Model

I have a procedure that returns a number of dynamic columns , because this procedure uses the Pivot , then the question arises: How to create a Entity Model for this procedure? Example: public class SProcedure_EF6Context : DbContext {...
asked by 18.05.2017 / 01:51
2
answers

Populate DropDownListFor dynamically with JQuery?

I'm trying to fill a DropDownListFor dynamically. This DropDownListFor eh to display the cities of the state, for example: The user chooses the state and in this DropDown the cities of that state are displayed. The problem i...
asked by 21.05.2017 / 22:27
2
answers

Retrieves data with Request.QueryString

I have a Partial that loads the data: @using (Html.BeginForm("PesquisarEventoPorLocal", "CadastroEvento", FormMethod.Get)) { <div class="row"> <div class="col-sm-12 col-md-12"> <div class="form-group co...
asked by 18.08.2017 / 06:56
1
answer

Show fields of an entity in a different View

I have a Academic entity that has a Teacher , I want the Academic Detail Professor who belongs to this Academician . The code I'm already using is this: Teacher model: public class Professor : RepositorioBase<Professor> {...
asked by 08.11.2017 / 17:27
1
answer

Passing a variable from javascript to session

I would like to know how do I submit a value that I have in javascript for an @session. in the case it would look something like this: I have a variable:    var id = $ (Person) .val (); This ID wanted to use in a session variable, but...
asked by 25.11.2016 / 04:42