Questions tagged as 'asp.net-mvc'

4
answers

Redirect from java script, inside a Json Succces

I am trying to validate the login of my application with a POST method, but the problem is that I do not know how to redirect once I get the response from the server. $.ajax({ type: "POST", url: '@Url.Action("IniciarSesion", "In...
asked by 27.06.2017 / 02:01
1
answer

Difference between Html.BeginForm () and Html.BeginRouteForm ()

Basically that's my doubt, what difference there is between these two html helpers . and when you should use one or the other.     
asked by 08.04.2016 / 19:34
1
answer

ActionLink in the form of Routing by parameters instead of QueryString

I'm trying to make it use a ActionLink with multiple parameters to generate a link to me in the form {Controller}/{Action}/{idCompania}/{idLocal}/{fecha} But it always generates a querystring : {Controller}/{Action}?idCompania=0&a...
asked by 23.12.2015 / 16:36
1
answer

Return a list of an object

I have the following model with a method to retrieve a list of data of the same model. public class Totem { public int Id { get; set; } public string Dato1{ get; set; } public string Dato2 { get; set; } public string Dato3 { ge...
asked by 28.08.2018 / 21:25
1
answer

Where to place my DbSet in my project with Entity Framework?

Well this may be a silly question but I would like to know how other people who use this framework work. I am new using these technologies, I am using Visual Studio with ASP.NET MVC 5 and Entity Framework and I have just started a new project, I...
asked by 08.07.2018 / 06:18
3
answers

Load a table with data

Working in ASP.NET MVC 5 I want to populate a table with data that a list brings me. table HTML <table class="table"> <tr> <td>ProveedorId</td> <td>Razón Social</td> <td>...
asked by 13.02.2017 / 20:47
2
answers

How to use url segmentation in asp.net mvc?

Good I have the following doubt, I want to know how I can work with the url, what I mean is the following, in PHP / Codeigniter, we worked in this way. //URL= https://localhost/algo <?php if($this->uri->segment(1)=='algo') {?> //s...
asked by 16.08.2018 / 19:12
1
answer

How to send by parameter of type string that contains special characters to the controller function?

In the view I have the following code: $("#btn_descargar").click(function (e) { e.preventDefault(); debugger; var iBody = $("#iframeID").contents().find("body"); var myContent = iBody.find("#myContent").text();...
asked by 20.08.2018 / 18:16
1
answer

Get value of a partialview in the parent view

Actually, I have two questions to ask you related to the partialview. First, I will comment on how I show the partialview Question One Add.cshtml @Html.EditorFor(x => x.Suma) <div class="modal fade" id="exampleModal" tabind...
asked by 16.04.2018 / 17:28
1
answer

How to delete a cookie correctly when logging?

I have a series of cookies and sessions which are created at the time of login in a successful way in an application. My question is how can I eliminate these cookies and session created at the time of logout? I ha...
asked by 14.06.2018 / 23:01