Data dodania Pytanie
2017-01-06 18:01 ActionLink helper in MVC navigates after second click »
I have a home page with different links inside, once I click in one of them, stay on the same page, the second click performs the redirect, why? My H...
(1) odpowiedzi
2017-01-06 18:01 Is using [FromBody] on my back end to recognize a WebAPI parameter good practice? »
I've got a front end WebAPI written with angular and TypeScript that looks like this. removeSubset(id: number): ng.IPromise<any> { ...
(2) odpowiedzi
2017-01-06 16:01 .NET Core forward a local API form-data post request to remote API »
I have an AJAX form which post a form-data to a local API url: /api/document. It contains a file and a custom Id. We simply want to take the exact rec...
(1) odpowiedzi
2017-01-06 16:01 Calling web api with client certificate from another web api »
Scenario: User talks with WebApi called 'Gateway' by angularjs client. 'Gateway' is like a facade or a proxy, so all requests from User to 'Gateway' w...
(1) odpowiedzi
2017-01-06 11:01 Variant and open generics IReadOnlyList »
I'm trying to understand why a specific behavior regarding variant and generics in c# does not compile. class Matrix<TLine> where TLine : ILine...
(1) odpowiedzi
2017-01-06 11:01 LINQ - Fetch items from list starting from specific index »
With the help of LINQ, I need to fetch items from a list based on a condition. For that it should consider items only from (provided index - 3) to pro...
(2) odpowiedzi
2017-01-06 01:01 How do you query several tables at once given a list of table names as strings? »
So I work at a company where there are several tables with different names, but the exact same structure (date, time, value). What I would like to be...
(1) odpowiedzi
2017-01-06 01:01 Passing views with ASP.NET core & Razor »
I'm new to trying out MVC and Razor. Currently using Visual Studio for Mac preview to develop a website to try out the technology. My biggest concer...
(2) odpowiedzi
2017-01-05 21:01 MongoDb Asp.Core define and use key (not value) in a relationship »
Context In our app, we permit to our users to upload files, which will be placed in a queue for review and approbation. User's file ID will be store...
(1) odpowiedzi
2017-01-05 20:01 Web Api How to add a Header parameter for all API in Swagger »
I searched for possible ways to add a request header parameter that would be added automatically to every method in my web-api but i couldn't find a c...
(1) odpowiedzi
2017-01-05 19:01 How to get ODATA to serialize NotMapped property »
I have a WebAPI backend that provides inventory information, etc. to various clients, using ODATA v3 (I cannot use v4 due to a restriction in a compon...
(1) odpowiedzi
2017-01-05 17:01 Select option from DropDown and automaticly set value in another TextField ASP .NET MVC »
I would like to choose an option from the dropdown menu and based on the selected option automaticly set the value in the second input field. Like th...
(3) odpowiedzi
2017-01-05 15:01 Is it good or bad practice to make stateless methods static? »
If a class method doesn't rely on the class' state then it can be static. Is it good or bad practice to make such methods static where this is the cas...
(2) odpowiedzi
2017-01-05 14:01 Passing in and returning custom data - are interfaces the right approach? »
I'm writing code in a C# library to do clustering on a (two-dimensional) dataset - essentially breaking the data up into groups or clusters. To be use...
(2) odpowiedzi
2017-01-05 12:01 C# LINQ select from where value is not contained in array / list »
New to LINQ and not sure on the correct syntax for what I want to do. I have a "Blacklist", an array or list (could be either) of bad codes that I do...
(8) odpowiedzi
2017-01-05 08:01 Add row dynamically and pass the value to controller »
Scenario : Initially my form has no rows. When I click add button a new row is created and I enter details in it. If I want another row, I click add b...
(1) odpowiedzi
2017-01-05 04:01 HttpClient PutAsync to update a field using RestAPI »
We have a third party API which has both the GET and PUT methods on it.The third party API returns response and accepts only in XML. The api looks lik...
(1) odpowiedzi
2017-01-04 17:01 Summing values of two textboxes in Asp.net MVC »
Im new to ASP .NET MVC Web Aplications and i please need some help. I need to summ two values ("Cena" and "Kolicina") and save into textbox "Znesek". ...
(1) odpowiedzi
2017-01-04 17:01 Ensure that WebAPI2 routes are matched before MVC Routes »
I have a web application which uses both MVC and WebAPI2. I would like for requests to always be matched up with WebAPI2 attribute routes before matc...
(0) odpowiedzi
2017-01-04 15:01 Convert a string to ordinal upper or lower case »
Is it possible to convert a string to ordinal upper or lower case. Similar like invariant. string upperInvariant = "ß".ToUpperInvariant(); string lo...
(0) odpowiedzi
2017-01-04 15:01 ASP.NET Web API Globalization Input Format »
ASP Web API and ASP Controllers have auto conversion for inputs: [HttpGet] public IActionResult Get(decimal? money, DateTime dateTime){ // some l...
(1) odpowiedzi
2017-01-04 14:01 Compile razor views for middlewares in Microsoft.AspNetCore.Diagnostics netstandard library »
I am trying to edit some parts of Microsoft.AspNetCore.Diagnostics library But I cannot edit razor files like CompilationErrorPage.cshtml Even after...
(0) odpowiedzi
2017-01-04 11:01 Where are generic methods stored? »
I've read some information about generics in .ΝΕΤ and noticed one interesting thing. For example, if I have a generic class: class Foo<T> ...
(3) odpowiedzi
2017-01-04 10:01 Automatically increment version number in ASP .NET Core »
I'm developing a REST API using ASP.NET Core and want the version number to be automatically incremented. This used to be easily by the following patt...
(0) odpowiedzi
2017-01-04 10:01 Are WebApi 2 request calls processed in logical threads of execution from stack? »
When ASP.NET Web Api 2 processes requests in asynchronous manner are they considered logical threads of execution? I.e. does setting up CallContext...
(0) odpowiedzi
2017-01-04 01:01 Is it possible to await a null literal? »
You can await anything in C# 5+ so long as the type has a function called .GetAwaiter() that returns a special object or has a extension method that d...
(2) odpowiedzi
2017-01-03 22:01 Xamarin csrf-token missing or incorrect using HttpClient »
I'm trying to run a post request with my Xamarin app. My backend is a Django app which allows all cross origin: CORS_ORIGIN_ALLOW_ALL = True There ...
(0) odpowiedzi
2017-01-03 19:01 Why does the SelectedIndexChanged event fire in a ListBox when the selected item is modified? »
We are given a Windows Form Application created from Microsoft Visual Studio's template (designer code on PasteBin 1 2 3 4) with a default ListBox exa...
(1) odpowiedzi
2017-01-03 15:01 Cookies created by Javascript not seen by C# (ASP.NET Razor) »
I'm setting a cookie in Javascript: document.cookie = "lang=" + lang + ";path=/;domain=" + window.location.hostname + ";"; If I check the cookies i...
(1) odpowiedzi
2017-01-03 14:01 C# 7 ValueTuple compile error »
I'm using VS2017 RC and my application targets net framework 4.6.1. I have two assemblies referencing System.ValueTuple 4.3 MyProject.Services MyPro...
(1) odpowiedzi
2017-01-03 11:01 How to use Route in Controller Level »
Here i'm trying to call WebApi Controller using [Route] attribute Why is http://localhost:57997/Hello/Jan/1 not a configured route while http://loca...
(2) odpowiedzi
2017-01-03 10:01 Exception trying to use attribute routing with autofac »
I have a problem with dependency injection when I'm trying to add custom route attribute on my action. Everything is working fine when I'm trying to u...
(1) odpowiedzi
2017-01-03 08:01 "Async All the Way Down": Well, what's all the way at the bottom? »
I'm trying to fully understand async-await and one of the gaps in my understanding is seeing what is "All the Way Down." I create an async method, it ...
(5) odpowiedzi
2017-01-03 03:01 what's the issue here?? webapi + angular + post »
Something weird is happening .... and I don't really understand why.... This post works only if change the id parameter type from int to object. I kn...
(1) odpowiedzi
2017-01-02 13:01 WebApi different DTO for Get and Post »
Is it ok to have different DTO's for GET and POST actions ? The reason for this is there is usually a vast difference between these two data models. ...
(1) odpowiedzi