Questions tagged as 'c#'

1
answer

Treat Action Return in JSon Format

Colleagues Devs, I have an application in C # and ASP.NET with an Action that returns an array in JSON. When I return only one string I get handle with javascript now, when I return an array I do not know how to handle it in javascript. Follo...
asked by 06.02.2018 / 11:20
1
answer

Write the user's Session / Cookie when signing in

In WEB applications, usually in the Login screen you have the Remind me option, this application will save the user data once it has checked the option. So when the user re-enters the site, instead of going to the Login screen, he will go...
asked by 31.01.2018 / 11:54
1
answer

NHibernate consuming lots of memory

I have an application that connects to the database via NHibernate , so some operations are performed as Save, Update e Delete . But when performing these procedures it is incredible how memory accumulation is done by not automatical...
asked by 19.02.2018 / 18:51
1
answer

How to load Image from FileUpload to asp: Image tag?

My question is how to load the direct image from FileUpload to the tag <asp:Image> And if it's possible to do these validations on the client side and do the type and size validations via jQuery. Follow the code below:...
asked by 20.02.2018 / 20:08
1
answer

Incompatibility issues with Plugin BLE with Xamarin project

I installed a plugin in my Xamarin Forms application and I'm having incompatibility issues:    BLE Plugin 1.3.0 was restored using .NETFramework v4.6.1 instead of   the project target framework .NetStandard Version. This package may   not be...
asked by 19.02.2018 / 22:18
1
answer

Keep stack trace when method rethrows the captured exception

I ran an application in Visual Studio Code Analysis and in several methods I received the following message:    CA2200 Rethrow to preserve stack   details 'fooBLO.FooMethod (DataProjectDTO, string)' rethrows a caught   exception and specifies...
asked by 19.02.2018 / 15:57
1
answer

How to access attributes of a JSON that was converted with special characters?

I'm consuming the Microsoft translation API, they That is, MICROSOFT returns XML in its API's), I was able to execute everything right, but as I hate working with XML I decided to convert from XML to JSON, with the library Json.NET , the XML...
asked by 15.03.2018 / 16:08
1
answer

Share enum of a web service with the client

I created a web service where you have enumerators to keep track of an integer attribute, I would like to know how I can access this enumerator from another project in which I am using this web service. Edit:     
asked by 14.03.2018 / 17:30
1
answer

Checkbox does not load data returned in json

I'm having trouble loading a checkbox ( <select> ) using C# MVC with Json . The method returns the complete list with objects, but does not load in the select box. My controller: public ActionResult SelecionarRep...
asked by 13.03.2018 / 18:40
1
answer

Find out which service is being used on tcp port C #

I created a Scan Port in C # (winforms), which is checking a range of ports, previously set, I can verify that the port is open, but my problem is: I know the port is open, but I do not know what kind of service is running on that port, is there...
asked by 13.03.2018 / 22:02