Questions tagged as 'asp.net-mvc'

1
answer

I can not modify table record using EF

I have the following table in SQL, which has those 4 data Through EF I am trying to update the records say ID 3 to be "40" but for more I try the amount always remains at zero This is the code I'm using: /*SE AGREGA SALDO AL SALDO...
asked by 25.08.2018 / 11:52
1
answer

Doubt with decorator [Route ("")]

I have the following controller [Route("micontrolador")] public class MiController : Controller { [Route("micontrolador/miaccion")] public ActionResult Index() => View(); } path micontrolador / miaccion Is it necessar...
asked by 12.06.2018 / 22:23
1
answer

Why do I have a loop in my for cycle?

I have a method ActionResult which has a cycle for where I go through all the cookies to eliminate them when doing logout. The problem is that when I call the method from my view (This through a form ) I enter the meth...
asked by 15.06.2018 / 16:15
1
answer

How can I occupy a model several times in asp.net core?

What happens is that I create a model of each table in my sql server database and a context of all tables with Scaffold-DbContext "my string" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -Context TrabajoContext, After I occupy only...
asked by 23.01.2018 / 23:35
1
answer

correct way to make a text box in mvc c #

I have my text box of type int in my view my leaves like this with the arrows up and down, as I declare so it does not look like this, or how I can put a dropndownlist with the years there. <div class="editor-label"> @...
asked by 24.10.2017 / 16:56
1
answer

Save HTML tags on sql server and read them

When I save some line break tags in a text on the sql server, that parameter I read it through a service and I save it in a ViewBag. When displaying it in HTML, the text is shown with the tags. For example: Hola esto es un texto <br /...
asked by 10.10.2017 / 16:45
1
answer

make the POST request from the controller

I have the need to make a POST request from the controller before loading the view, I want to do this due to a certain condition that is required of me. The condition is:    If I have more than one product under contract show a "Menu" with...
asked by 22.05.2017 / 20:45
3
answers

Call a Modal Window from a partial view

I have a partial view where I have certain data in the form of a table, I would like to have an edit button per row, but I do not want to launch a new sale, but these fields can be edited in a modal, but I honestly do not know how to do this....
asked by 07.06.2017 / 16:10
1
answer

Upload files to Amazon s3

Dear, I have a web project that I am developing with Microsoft technologies. The project itself has several types of projects, wcf, MVC, among others. What I need to do is upload files (they can be images, documents and different types of doc...
asked by 17.03.2017 / 23:03
4
answers

How to convert an image to base64 in ASP.NET MVC?

I have a WS that receives the following data: <token>string</token> <NroComputacion>string</NroComputacion> <NroCarnet>string</NroCarnet> <Foto>string</Foto> <Firma>stri...
asked by 26.10.2016 / 20:27