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

2
answers

Editor type DateTime does not show the date but in the input if the value appears

I am developing an application in ASP.Net MVC5 that contains a pattern of workers, among the data that must be captured is the date. Now the problem is that in my Edit view if I load the value that comes from the model in the input, however in d...
asked by 14.11.2018 / 00:27
3
answers

how to convert string date to datetime

I have a date in the following format 10/16/2018 or this is in MM / DD / YYYY format so it comes as a parameter, but this date is as string and I need to convert it to a datetime, try the following: string fecha = "10/16/2018"; DateTime dt = D...
asked by 16.10.2018 / 16:02
1
answer

Redirect to another page and place you in an exact place on the other page [closed]

I need help I have a question page, but there are different blocks of questions, and on another page I have all the answers to those questions. My intention is that when I select a block of questions when I go to the other page, I also place...
asked by 29.06.2018 / 22:35
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
2
answers

Failed to reference style sheets (css) and javascript in ASP.NET MVC 5 project with Razor

Good afternoon, I have a my website in ASP .NET MVC. I am currently implementing the Layout (Located in Yanbal (the VS solution) - > Views - > Shared - > _Layout.css . I have made a model in wordpress, I got the html code from it...
asked by 01.07.2017 / 01:59
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

Modify a column with specific data using ASP.NET MVC5

I have a table with some users waiting for approval, create a button called approve, by pressing it sends you to for example    link < - user ID This is my view. @{ ViewBag.Title = "Approved"; } <h2>Approved</h2>...
asked by 06.04.2017 / 19:04