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

1
answer

DropDownList cascaded

I have this code but at the time of changing the option of the first DropDownList I get the following error:    undefined in the second DropDownList -El controlador- public JsonResult ArticulosPorCategoria(int Id ) { var arti...
asked by 24.08.2016 / 00:17
2
answers

Generate table in view through a query to the database. JSON, JQUERY, MVC, .NET

I am new to the forum and I have broken my head all day because I can not solve this. I would greatly appreciate your help. I have a very simple application in c # .net. I need to generate a table from a json that (according to me) contains t...
asked by 28.08.2018 / 00:33
4
answers

I can not consume a Web service with jQuery; Answer Requested page not found [404]

This is a fragment of the webservice: [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)], [System.ComponentModel.ToolboxItem(false)], [System.Web.Script.Services.ScriptService]) public class ClientServei : System.Web.Services.We...
asked by 24.12.2015 / 11:40
2
answers

how to pass data from a controller to a view that is not yours?

For example I have the DeleteUsers driver whose view is DeleteUsers.cshtml and another where the driver is Users and the view is Users.cshtml what I want is to pass the value of ViewBag.Error in DeleteUsers (controller) to Users (Vista) for ther...
asked by 18.08.2016 / 19:16
1
answer

Invalid visual variable for the max-width property of a style. In MVC asp.net

I have the following code: <% For Each img In Model.listadoNoticias.Item(0).FOTO Dim id_LaImagen = "foto_" & img.IdFoto.ToString() Dim src_imagen = img.RutaFoto.Split("/") Dim ruta_Foto = Server.MapPath("~") & s...
asked by 10.03.2016 / 05:47
1
answer

Upload images to the index with MVC 4 C #

I have in my view "Upload" the following code: <form action="" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file" /> <input type="submit" />...
asked by 16.06.2016 / 20:32
2
answers

Get the name of a binary image with base64 when you download it

Suppose I have the following base64 image: <img alt="imagen de prueba" width="16" height="16" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAA……… /> When I run the view in the browser and show the image, at the time of downloa...
asked by 13.01.2016 / 04:30
3
answers

Use of td and tr mvc

How can I put the comma to the employee's salary or currency type this is the view @foreach (var item in Model)                 { <tr> <td>@item.EmpId</td> @*...
asked by 17.10.2018 / 19:44
2
answers

Get Role List from the AspNetRoles table in MVC5

I want the default record to create a project in MVC5, under repeat password put a selection list ( ComboBox ) where I show the list of the roles that exist in the table AspNetRoles creates by default the Visual Studio. I have ha...
asked by 20.04.2017 / 16:31
3
answers

Prevent TempData from becoming null when reloading view

I have a problem with TempData when refreshing the view. This controller assigns a string to TempData : public ActionResult Sucursales(string rfcCompany) { model.CuentaUser = CuentaUser; TempData["RFCCompa...
asked by 24.03.2017 / 19:51