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

1
answer

ASP.NET MVC - How to work with partial views within a strongly typed view

could you tell me how to work in this context: I have a strongly typed view that performs the search of some records, the search by ajax button loads a partial view in a div of the main view, then in this partial view I select some check and...
asked by 05.12.2016 / 23:07
1
answer

MVC - Return View (Model) when I make a POST

I have the following problem. My Controller has 2 Functions. This: <AllowAnonymous, HttpGet> Function Register(urlBack As String) As ActionResult Try Dim DBIvas As New BLIva() Dim DBProvincias As Ne...
asked by 29.11.2016 / 22:30
2
answers

How to print the symbol from xslt?

I am building a class generator from SQL database among several recommendations I chose to use XSLT 1.0, everything worked out pretty well, the inconvenience came when I wanted to print the symbol < since I need to print the following string...
asked by 27.12.2016 / 23:30
1
answer

Manage a list of items with images

Good morning My query is the following one I would like to know how I can do to move by a list, object by object showing me the information registry by registry. I mean, I have my first actionResult that receives the information to generate t...
asked by 01.11.2016 / 22:44
1
answer

One-to-one relationship in Entity Framework mvc

I have two entities, Service and Contract, their relationship must be one to one. the requirement is simple. how can I achieve this by means of data annotations or fluent api. the following is the code that I have (Entity Service) [ForeignK...
asked by 23.11.2016 / 19:31
1
answer

Assign Cursor to List

How can I assign the results of a cursor to a List using SQL Server and Visual Studio ? The cursor is in a stored procedure, which must be called from the Controller: Stored Procedure CREATE PROCEDURE Lista_mun...
asked by 13.09.2016 / 07:16
1
answer

Error 404 when accessing the ASP .NET MVC 5 driver with JQuery

I have a driver like this [Route("/Historial/{inicio}/{final}")] public ActionResult Historial(int inicio, int final) { Return PartialView(); } I tried to access that driver through
asked by 28.07.2016 / 01:17
1
answer

Return Object C # by AJAX (Json - ASP.NET - MVC 5)

I am working on an application which contains a 'Kanban' board (Some will know what it is). I am trying to return a C # object, which contains other objects (which would be the tasks that the user has created on that board). What I want to do is...
asked by 12.09.2018 / 15:50
1
answer

How to send error or info messages to the view with ModelState?

I have the following form with Ajax.BeginForm using (Ajax.BeginForm("MiAccion", "MiController", new { ReturnUrl = ViewBag.ReturnUrl }, new AjaxOptions { OnSuccess = "OnSuccess", OnFailure = "OnFailure" })) {...
asked by 21.06.2018 / 19:31
2
answers

Showing the data that brings the stored procedure to an ASP.NET MVC 5 view

I'm trying to show what my stored procedure brings and I want to send it to view: This is how I sent it: var Fechainicio = new SqlParameter { ParameterName = "inicio" , Value = FechaDesde };...
asked by 24.10.2018 / 15:47