Data dodania Pytanie
2017-03-14 17:03 How to display up to two digits at max but can show less? »
How do I format a cell in a grid that is treated like text to be zero, one, or two digits depending on what the value is but to cut it to two digits i...
(3) odpowiedzi
2017-03-14 17:03 Request content decompression in ASP.Net Core »
I sometimes need to post larger JSON request payloads to my ASP.Net Core Controllers. The size of the payload warrants (at least in my opinion) compre...
(0) odpowiedzi
2017-03-14 16:03 Generate a list of contacts from a table based on a Bool value »
I am currently developing an asp.NET MVC web application as a front end to a database. I have a MySQL database, one of the tables is contact informati...
(3) odpowiedzi
2017-03-14 16:03 Why does the order of auth middleware declaration matter in Owin Startup class? »
I read some examples(1,2,3,4) about setting up authentication in the owin pipeline when using web api and the examples declare the authentication mid...
(1) odpowiedzi
2017-03-14 15:03 Noob in ASP MVC Routing - 404 error »
I'm new to API designing with VS2017 and I'm trying to make my simple API work with few SQL objects in a DB. I have a fairly simple project which loo...
(3) odpowiedzi
2017-03-14 12:03 TIMEOUT issue while searching data from SQL Server when insert update commands being executed »
I have a Windows service developed in C#. This service imports data from XML files into a SQL Server database, into different tables. These XML files ...
(6) odpowiedzi
2017-03-14 10:03 syntax in string and razor »
When I make this piece of code I get a red line between the bracket and payment: > com") payment UPDATE The code is working with the suggestions ...
(1) odpowiedzi
2017-03-14 10:03 Web API Request is null in ExecuteAsync method of ApiController »
I am trying to access the Request property in my ApiController-derived class. For some reason, Request is null in ExecuteAsync method. I've seen the ...
(1) odpowiedzi
2017-03-14 05:03 Overloaded function with params string[] in the signature »
I have these two functions public static string Function1 (string id, params string[]) { return Function1(id, null, null, params) ...
(2) odpowiedzi
2017-03-13 21:03 ASP Net Core 1.1 and EF 6 Exception in Unmanaged Code? »
Ok, this is a really freaky problem that has just developed, and for the life of me I have no idea where to start. For some reason, I'm getting a fat...
(0) odpowiedzi
2017-03-13 20:03 Confused on passing parameter to MVC Partial View? »
I inherited an MVC site and was asked to combine two pages into one. Since both Views have their own View Model, I thought instead of pushing the two ...
(1) odpowiedzi
2017-03-13 19:03 How to stream with ASP.NET Core »
How to properly stream response in ASP.NET Core? There is a controller like this (UPDATED CODE): [HttpGet("test")] public async Task GetTest() { ...
(2) odpowiedzi
2017-03-13 15:03 instantiate subclass by string na C# »
I have a Class and a Sub Clas namespace MyCode { public class Class1 { int a = 1; int b = 2; public class SubClass1 ...
(2) odpowiedzi
2017-03-13 14:03 Web API 2 - Communication between controllers »
Have anyone experience with communication between controllers in Web API 2 ?? Let's assume, we are working in web zone. Little example: public class...
(2) odpowiedzi
2017-03-13 12:03 Unity - WWW.text returning null on android device »
I am developing an Android app with Unity. But I cannot connect to a internet server with it. Tho this gives false, which is good: Application.intern...
(1) odpowiedzi
2017-03-13 12:03 Web Api C# .net params POST »
I'm trying to send a list of products for my web api in C# via JavaScript but my API doesn't accepts the products. How do I should pass it? This is m...
(2) odpowiedzi
2017-03-13 08:03 ASP.NET webapi odata put, The property 'ID' is part of the object's key information and cannot be modified »
I am a nooby with ASP.NET webapi, and this is a very simple situation that i am stuck in. I am using webapi+odata My Model: public class CategoryMo...
(0) odpowiedzi
2017-03-13 02:03 Time.time vs DateTime.UtcNow.Millisecond performance in Unity3D? »
I need to keep track of the time a lot in my multiplayer game built with Unity, in order to know when the packet of data came in. What would have bett...
(1) odpowiedzi
2017-03-12 23:03 C# IL code modification - keep stack intact »
This question is about static stack analysis of custom C# IL code and how to design the opcodes to satisfy the compiler. I have code that modifies ex...
(1) odpowiedzi
2017-03-12 20:03 IOptionsSnapshot not refreshes after *.json file changed »
I followed the hello world example form IOptionsSnapshot, but the content is not refreshed after file config.json is changed and saved. My dev enviro...
(0) odpowiedzi
2017-03-12 17:03 Add Property Value in Message Handler »
I want to add property value in message handler of asp.net webapi. scenario is I implement webapi in which authenticationToken is part of different re...
(2) odpowiedzi
2017-03-12 17:03 WebAPI exception - Make sure that the controller has a parameterless public constructor error »
I have this "known" issue below, but couldn't find a solution to that. This works perfectly on my local VS2015, but fails in the remote 2008R2 server ...
(0) odpowiedzi
2017-03-12 13:03 Complied expression tree gives different result then the equivalent code »
The following code: double c1 = 182273d; double c2 = 0.888d; Expression c1e = Expression.Constant(c1, typeof(double)); Expression c2e = Expression....
(2) odpowiedzi
2017-03-12 11:03 HTTPS request fails using HttpClient »
I am using the following code and get HttpRequestException exception: using (var handler = new HttpClientHandler()) { handler.ClientCertificateOp...
(1) odpowiedzi
2017-03-12 07:03 Enabling c# 7 in a asp.net application »
I just started working on my old solution in Visual Studio 2017. Just opening the solution in the old IDE worked seamlessly. The c# application projec...
(2) odpowiedzi
2017-03-11 22:03 Creating html links inside jQuery Datatable »
I am currently trying to change asp.net GridView Control to jQuery DataTable with Ajax. In my project, the home page has a justified image grid as sho...
(1) odpowiedzi
2017-03-11 17:03 Convert Recursive Method Group in LINQ Select to iterative method »
I've got a class that looks like this: public class SourceObject { public string Id { get; set; } public List<SourceObject> Children { ...
(4) odpowiedzi
2017-03-11 15:03 How to parse text from anonymous block in AngleSharp? »
I'm parsing site content using AngleSharp and i've got an issue with anonymous block. See the sample code: var parser = new HtmlParser(); var docume...
(1) odpowiedzi
2017-03-11 13:03 How to warm up Android device to 40 degrees via Unity? »
I wish to create an Android app that will act as a "hand warmer". I am using GPS calls, vibration, flashlight and I am also using multiple threads to ...
(1) odpowiedzi
2017-03-11 10:03 How to address this DI caching »
I am using windsor castle DI along the Generic Repository pattern for my WebAPI project. User forgets the password, so he calls ForgotPassword API. ...
(1) odpowiedzi
2017-03-10 23:03 async await for a single task at a time »
During my job interview, I was given a task to create an asynchronous wrapper over some long running method, processing some data, but to create it so...
(3) odpowiedzi
2017-03-10 20:03 C# synchronize 2 lists of different types by time »
I have 2 lists of different types. I think for now it doesn't matter what types that are. Both types have an information about occurance which is in t...
(2) odpowiedzi
2017-03-10 17:03 Display a List of Tuples in a C# cshtml View »
I have tried a few ways to get this Tuple list to display in my cshtml view as uploadModel.ErrorsList but have had no luck, this only displays the typ...
(1) odpowiedzi
2017-03-10 16:03 In C#7, how can I "roll my own" Task-like type to use with async? »
One of the less-talked-about features of C#7 is "generalized async return types", which is described by Microsoft as: Returning a Task object from as...
(1) odpowiedzi
2017-03-10 11:03 How to load a DLL file from a specific URL in Asp.Net Core »
I would like to download a DLL file from http://localhost:8080/bin/ and instantiate classes and functions in my Asp.Net Core application. I've made a...
(2) odpowiedzi