Questions tagged as 'asp.net-mvc'

1
answer

Error in Chrome when downloading Excel created by ReportViewer

I have the following code in the view: <% using (Html.BeginForm("GeneraReporte", "Libro")) { %> <input id="format" runat="server" name="format" type="hidden" value="xls" /> <input type="image" src="<%:Url.Content("~/I...
asked by 16.09.2016 / 15:51
1
answer

Show coordinates on a google map with jquery Asp.Net MVC

Hi, I have a project in asp.net mvc which brings some coordinates of the database and should show the markers on a map, but it does not. Here I leave the code and the result in the browser console. @model Models.VerRutaModel <style...
asked by 03.11.2018 / 02:09
2
answers

Authorize mvc user access

I am implementing the use of user permissions with the Authorize , I have correctly implemented its operation, but I would like to know how I do that when the user is not authorized to access that view in the controller Authorize do...
asked by 30.05.2018 / 16:09
2
answers

Get checkbox record value in controller MVC C #

I have an MVC C # view in which I show the employee records of a specific region, plus I have added a checkbox so that the user can select one or more employees with whom I will work later. this is the model I use in the MVC view public cla...
asked by 01.05.2017 / 00:33
4
answers

how to set a default value of 0 in dropdownlist

then the dropdown brings the following values VALOR1 VALOR2 VALOR3 I want the combo to bring a default value to tell me to choose your example option: -- SELECCIONE -- VALOR1 VALOR2 VALOR3 because it always brings me by default VALOR1...
asked by 24.01.2018 / 16:31
2
answers

ASP.NET MVC + AngularJs + Bootstrap

I'm working with ASP.NET MVC 4. I have some doubts, when installing Angulars is there a Bootstrap for Angulars? , oh you do not have to see each other, is the installation of both independent? .     
asked by 27.12.2016 / 05:11
5
answers

removeClass JQUERY does not work

I'm using ASP.NET to make a form, but I need to remove the class disable , I'm using JQUERY , and I need to remove it to several labels that make up my object, but I'm not having much success. The objects that I want to affect are...
asked by 08.06.2018 / 18:15
2
answers

Web API Default Route does not work when it receives a parameter

I am using Web Api 2.0 together with MVC 5 This is my WebApiConfig config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional }...
asked by 04.04.2016 / 15:13
2
answers

How to pass two parameters to a controller via ajax

I'm working on an ASP Mvc project, I have the following controller: [HttpPost] public ActionResult Asociar(int? id, int proveedorId) { return PartialView("Companies"); } In my view I pass these parameters in the following way: <a...
asked by 01.05.2016 / 06:09
1
answer

What is the difference between posting to file systems and web deploy on asp.net?

They could explain to me the difference between posting on file systems and web deploy on asp.net     
asked by 06.09.2018 / 16:22