Questions tagged as 'asp.net'

1
answer

Use Multiselect bootstrap "Does not show accents"

I do not know what I have to confirm to show me with an accent what I put in the nonSelectedText onInitialized: function($select, $container) { }, enableHTML: false, buttonClass: 'btn btn-default',...
asked by 08.11.2018 / 22:50
1
answer

Problems to activate Allow Unsafe. I can not run unsafe

I'm making a website published in hostlocal in C # and VisualStudio 2015. I need to set the AllowUnsafeBlocks option, for a class that uses pointers, but I can not. I'm sure it's silly, but I do not see it and I'm going crazy. When I open the...
asked by 02.11.2018 / 23:25
1
answer

ERROR: Another SqlParameterCollection already contains SqlParameter

I'm using SqlParameter, when I use it twice I get this error: {"Otro SqlParameterCollection ya contiene SqlParameter."} Here I use it the first time: SP2 using (ApplicationDbContext db1 = new ApplicationDbContext()) {...
asked by 28.10.2018 / 01:13
2
answers

Do not download the file to the browser using OutputStream.Write in ASP.NET WebService C #

I need to download a file located in the App_Data folder of my project, all the permissions are granted, I have the following code to download an .xlsx file by calling a WebService in C #, the result of the process is not error, but it does not...
asked by 29.10.2018 / 22:36
1
answer

The value of the specified String type of the data source can not be converted to the nvarchar type of the specified target column SqlBulkCopy

My problem is the following I am wanting to pass an excel file to sql server. When I take the file and I want to pass it, I throw this error:    "The value of the specified String type of the data source can not be   convert to the nvarchar t...
asked by 24.10.2018 / 18:20
1
answer

Problem when saving a file in a folder, which comes from type byte [] on the server when using WriteAllBytes in C #

I have the following function. private void guardarimagen( byte[] img) { var path = Server.MapPath("~/Images/prueba.jpg"); System.IO.File.WriteAllBytes(path, img); } EN localhost works fine, but when I tr...
asked by 11.10.2018 / 19:06
1
answer

Unable to load the file or assembly 'System.Web.Helpers'

I'm working on an asp.net mvc project with c #, everything was fine until I got this message. Error de servidor en la aplicación /. No se puede cargar el archivo o ensamblado 'System.Web.Helpers' ni una de sus dependencias. La definición del m...
asked by 15.10.2018 / 17:45
1
answer

Method to edit does not work ASP.NET MVC 5

I am working in a web application of a car dealership, I have a view to edit the object of type Automovil that has the following parameters: model, year of manufacture, color, price, transmission, fuel, brand, model, category , state, extra and...
asked by 06.04.2016 / 04:37
1
answer

Error converting DropDownList to Int32

I try to enter a value by means of a form and it generates this error, could you help me please this is the form <asp:Table id="Table1" runat="server" CellPadding="8" GridLines="Both" BorderColor="white" Height="419px...
asked by 30.10.2018 / 21:56
1
answer

Load table body with JSON. ASPX

I have the following table: <body> <table id="datas" align="center"> <thead> <tr> <th>Id</th> <th>Nombre</th> <th>Eda...
asked by 22.11.2018 / 01:18