Questions tagged as 'asp.net'

1
answer

Install ClosedXML in hosting

I'm developing in ASP.NET, C #. I have an excel file with a preset format and I'm using ClosedXML to open it and fill in the required information in the cells and then save it and be able to open it from excel. It works perfectly when I try i...
asked by 17.03.2017 / 14:22
3
answers

ASP.Net MVC - Send data from a view to a controller

How do I do the following? I have a classic view with tables created with razor as follows: ... @foreach (var item in Model) { <tr> <td> @Html.DisplayFor(modelItem => item.a) </td>...
asked by 24.11.2016 / 21:50
1
answer

Errors in HTMLHelper references

Visual studio throws me these errors that are seen in the image, even when I have the code well done and also when I run the page everything is fine.     
asked by 08.11.2016 / 21:36
2
answers

Obtain a JSON object, sent as an ajax parameter, with asp.net

This is my js. $('#tablaDemo').DataTable({ processing: true, serverSide: true, ajax: { type: "POST", contentType: "application/json; charset=utf-8", url: "../P...
asked by 08.11.2016 / 18:42
3
answers

Error "ExecuteNonQuery: Connection property has not been initialized."

Why do you return the following error?    ExecuteNonQuery: Connection property has not been initialized. Code: public bool IngresarUsuario(Prueba objeto) { using (SqlConnection con = new SqlConnection(strConnection)) { t...
asked by 07.11.2016 / 22:38
2
answers

how to get html label value from ASP.NET server side c #?

On my client side I have an html select where changing the index changes an html label with jquery $(document).ready(function () { $("select[name = sreport]").change(function () { var selected = $("option:sele...
asked by 03.10.2016 / 20:11
1
answer

How to put in my table in JSON jQuery a sql pdf?

I would like to open my pdf file that I stored in my sql table with the following fields: nombre(varchar),tipo(varchar),ruta(varbinary) . How would it be? So I have it but it only brings me the name as I open the pdf ??? function OnSu...
asked by 20.06.2016 / 19:10
1
answer

ASP.net avoid going back in browser, and avoid pressing the same button twice

I have a problem, many times users press the button twice and that causes data inconsistency, or press one, go back and press the button again, then the key questions are: How to avoid more than one click in a button? How to avoid being able to...
asked by 14.06.2016 / 00:12
2
answers

Save a GoogleMaps image on server with ASP.NET MVC 4 and C #

I'm doing a site where I use Google Maps API, I generate coordinates and I search for a specific site, then I take a site capture with html2canvas to generate an image in <img> , my question is: How can I take this image to...
asked by 25.01.2016 / 19:06
2
answers

Consume RESTful Web service in ASP .NET

I have a situation, I must consume a RESTful Web service with OAuth2 authentication and my application is developed on ASP.NET. What can I use to consume this service? How should I create the client using libraries like OWIN or others?     
asked by 04.02.2016 / 18:02