Questions tagged as 'asp.net-mvc'

1
answer

Convert an array of bytes into an image with JavaScript

I have the following situation. I am using a Google API to generate dynamic charts (Google Org Chart), my project is made in asp.net mvc, but this time I only use JS. The problem that arises is that I need to show an image that I have hosted...
asked by 22.11.2018 / 17:49
1
answer

Show the product category as a list item in a foreach on asp.net mvc

I have a list in the Sales model where I usually display all the products, but now I need to display the category to which they belong, but only once, for each product category, how could I do this? This is an example of what I want to do P...
asked by 01.12.2018 / 13:46
1
answer

bootstrap-datetimepicker error date format, Asp Mvc

I have in one view an inputbox on which I am using bootstrap-datetimepicker to capture the date, this DTP has the format 'YYYY / MM / DD': <script type="text/javascript"> $(function () { $('#datetimepicker1').date...
asked by 10.06.2016 / 23:53
2
answers

Convert Text to Bar Code C #

I want to convert a text string entered in a TextBox to a barcode, but it has an error: Error: No se puede convertir implicitamente el tipo 'System.Drawing.image' en 'String' I use the following instruction: libraries: using Bar...
asked by 03.09.2018 / 22:53
1
answer

Send parameters from the view to the controller in C #

At the moment of receiving the parameters in the Controller from the View, the same arrive null, in the View I have the following code: @model Syc.Visitantes.Dominio.Entidades.Usuario @{ ViewBag.Title = "Crear Usuario"; } <h2>Crea...
asked by 23.04.2018 / 17:11
2
answers

Data between views with ASP.NET

Hello I need to pass a data from one view to another, but I can not get it. Someone could please tell me the most appropriate way to send data. In this case my data is being obtained from another function and I need to know how to pass it is a...
asked by 19.12.2017 / 17:53
1
answer

Timeouts vs ExpireTimeSpan UseCookieAuthentication

I have found an MVC application at work with the following properties and there is something that smells bad to me. I do not finish understanding the timeouts of authentication , sessionState and ExpireTimeSpan . Is it necessa...
asked by 29.11.2017 / 18:52
3
answers

Why does ExecuteNonQuery () give me the following error?

Good will put my code here and have if someone can tell me what error I have here because I can not see it public List<EntidadProducto> listarProductosCD(SqlConnection conexion, int ID, String nombre, decimal precio) { List&l...
asked by 23.10.2017 / 00:32
2
answers

Get properties of an ASP.NET file Razor C #

Hello, I'm doing a module in ASP.NET with Razor and C # where I upload a file of any type to a database , along with other data. I need to get the properties of the file on the server side ("with C # "), in order to be able to append thes...
asked by 27.10.2017 / 19:16
3
answers

Sort lists in C #

I need to return the list facturas ordered by the field entidades . I've tried like that but it does not work for me: facturas.OrderBy(f => f.Entidades).ToList(); Code: public ActionResult Index() { var facturas =...
asked by 01.06.2017 / 16:28