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

0
answers

Load DropDownList Ajax (ASP.NET MVC 5)

I would like to know what to do or what steps to follow to be able to list a field in a table (in SQLServer) in a DropDownList with AJAX. I am a development practitioner and I was assigned a project for internal use by the company, which focu...
asked by 22.05.2018 / 17:54
1
answer

ASP.NET MVC 5 help with JWT logging

I am developing a web application which consumes the data from a API , this at the time of login returns me a token . This token must be used in the other internal consultations of the application since it must be sent in each req...
asked by 09.05.2018 / 15:31
2
answers

How to return the value of an HttpPostedFileBase in a Post method of the MVC Controller C #

I have a model like the following: public class Model_ejemplo { public HttpPostedFileBase image { get; set; } } in my controller I receive my model with this property [HttpPost] public ActionResult index(Model_ejemplo Model) { Retur...
asked by 21.05.2018 / 15:55
1
answer

ASP.NET MVC 5 error when consuming api with HttpClient

I am consuming an api through the HttpClient service which works fine, but at the time of making another request it throws me an uncontrolled exception. With this last I mean that when making the first request it returns the answer to me well, b...
asked by 04.05.2018 / 16:56
1
answer

ASP.NET MVC 5 refactoring method to consume api

I am at a crossroads, since I am developing a web app where I must consume an api by GET and POST, the logic of the service is solved, but I would like to refactor the code so that I do not have to repeat the same pieces in each request. I ha...
asked by 03.05.2018 / 18:40
2
answers

ASP.NET MVC 5 consuming api

I am developing a new platform which consumes data from an API of the SBIF, but the JSON with the data that it returns to me comes like this { "Dolares": [ { "Valor": "603,31", "Fecha": "2018-04-27"...
asked by 27.04.2018 / 14:07
0
answers

How to use the dynamic connection parameters

Currently this code gives me an error when the session expires, because it loses the data, what I would need to be able to store the connection data, the variable that never loses the data and that is accessible to all controllers. In the ses...
asked by 24.04.2018 / 18:49
1
answer

DropDownList with Selected Me returns Null when doing post

I am working with ASP.Net MVC 5 and EF6, I have a class to edit users of the application and fill in a DropDownList the roles that exist and has preselected the role of the user, when doing post selecting another Role returns me a exception in t...
asked by 19.04.2018 / 18:15
0
answers

link a select option with a checkbox. C # MVC

I come with you as I would like to know how to do the following. In this table: When I select the checkbox I generate an arrangement to save the value of the selected checkboxes, the detail is that I need to be able to link the value of...
asked by 30.04.2018 / 18:35
1
answer

ASP.NET MVC: Save an int variable from a select query on sql server

My problem is as follows. I have a code for a login, where I keep the username of the user who logged in Session["USERNAME"] . What I'm trying to do is put in my variable wea the ID of the user who just logged in using his username...
asked by 18.04.2018 / 04:18