Data dodania Pytanie
2017-02-09 15:02 Windows Task Scheduler OR TaskService Functions in WebApi »
I want to create some functions in ASP.NET Web API, which should be executed daily at specific time and do specific task like update statuses/Records/...
(4) odpowiedzi
2017-02-09 14:02 How to pass the ID of an object from a form to an action in ASP.NET MVC »
I have an ASP.NET MVC project with entities based on EF6 (model first). So my entities are all auto-generated for me. I have an entity, Site and I jus...
(2) odpowiedzi
2017-02-09 13:02 How to pass authorization token to GET method to access authorized resource? »
I am new to Token Based authentication. With reference to below links, I am trying to understand Token Based authentication. http://bitoftech.net/20...
(1) odpowiedzi
2017-02-09 11:02 How to make reusable controllers in Asp.Net Core »
I'm working on my first Asp.Net Core project, which is to support both a web client, and a Game client (written in Unity). Now, I started with the de...
(2) odpowiedzi
2017-02-09 10:02 Are there built-in Month name declensions in C# »
I'm wondering if there's any built-in functionality in .NET for declining dates in languages that support noun declensions, (ie. In Russian the month...
(2) odpowiedzi
2017-02-09 08:02 Jquery datatable get row id from button click »
I have two buttons rendered on each row in my datatable, Edit and Delete. Is it possible to grab the employee's ID or the Row's ID on the Delete or Ed...
(5) odpowiedzi
2017-02-08 20:02 Prevent CSRF in Web Forms using Ajax and Web Api in the server side »
I got a site where I need to avoid CSRF attacks. I have researched a lot of time and all examples use a function in the client side like this @functi...
(0) odpowiedzi
2017-02-08 13:02 Global assemby reference? »
I'm new to C# and ASP.Net core. I'm using ASP.Net core 1.1 and I have referenced a project, how can I make this referenced project globally visible t...
(1) odpowiedzi
2017-02-08 11:02 Console Application - WriteLine above current working line »
I have seen a few other posts very similar to this one, but the answers they give are not correctly answering the question. Sorry if there is somethin...
(2) odpowiedzi
2017-02-08 11:02 WEB API Routing Error Multiple actions were found that match the request with different API paths »
I'm implementing web API MVC in c#. My snippet implementation is: - WebApiConfig.cs config.Routes.MapHttpRoute( name: "getMultiProbe", routeTe...
(2) odpowiedzi
2017-02-08 09:02 What is the first argument in a parameterless constructor? »
I have simple program like this: public class Foo { public Foo() { } public int MyInt { get; set; } = 10; public List<int> ...
(3) odpowiedzi
2017-02-08 07:02 Unnecessary conversion to bigint »
I have employee table with bigint primary key field in database and entity data model with database first approach. Employee class have this structure...
(2) odpowiedzi
2017-02-07 21:02 Need to get request and response body and head in web Api2 project .How can i do it? »
Web Api2 project,,,Controller inherited from another controller ,,,,need to get every request's and response's body and head in json format ...
(1) odpowiedzi
2017-02-07 21:02 Using DataTable in .NET Core »
I have a stored procedure in SQL Server that accepts a User-Defined Table Type. I'm following the answer from this post Bulk insert from C# list into ...
(3) odpowiedzi
2017-02-07 21:02 Newtonsoft JSON ShouldSerialize and inheritance »
I have a class like this: public class Foo { public int Bar { get; set;} } This class is used to be stored in a NoSQL database so I need to sto...
(2) odpowiedzi
2017-02-07 15:02 Dynamic textbox binding to a list »
I am very new to MVVM and I am stuck with data binding. I have a button on my view page which dynamically creates text boxes but I cannot see how I b...
(1) odpowiedzi
2017-02-07 10:02 How does MVC handle button clicks in the controller »
How does MVC handle the submit button in my code? I have a controller named ArticleController which should handle it, but I can't figure out how. @{...
(4) odpowiedzi
2017-02-07 08:02 Why C# Null Conditional operator does not return Nullable<T>? »
I am just curious about that "Why null propagation operator does (or can) not give any information about the type such as returning null in type of Nu...
(1) odpowiedzi
2017-02-07 07:02 Asp.Net Core redirect to action but not allow action to be called directly? »
I have a situation where I want to redirect/show to some url/action when the result is successful but return to view if there was some error. For exa...
(2) odpowiedzi
2017-02-06 23:02 C# generic method resolution fails with an ambiguous call error »
Suppose I have defined two unrelated types and two extension methods with the same signature but different type filters: public class Foo {} public c...
(1) odpowiedzi
2017-02-06 19:02 Why is there a performance difference between LINQ (c#) vs Seq (f#) »
I made very simple C# and F# test programs. using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace C...
(1) odpowiedzi
2017-02-06 19:02 Sending json response using Authentication filter in Web api controller? »
I have an authentication filter in my controller [ArcGISAuthentication] I have defined the filter like below public class ArcGISAuthenticationAtt...
(1) odpowiedzi
2017-02-06 17:02 Show DateTimeOffset in View as normal Date Format »
I want, that my DateTimeOffset in the database outputs in the View as a normal date (for example -> 10.12.2011). But it shows the date format like thi...
(1) odpowiedzi
2017-02-06 13:02 WebAPI accepts different value for integer »
I have developed WebAPI which accepts class and with post method type. I am facing really weird scenario here. I am posting below as json. { "Messa...
(2) odpowiedzi
2017-02-06 13:02 Web Api interaction between multiple controller endpoints »
I am looking for a bit of constructive advice. I am trying to map how multiple controller endpoints can interact with each other such that I do not en...
(1) odpowiedzi
2017-02-06 12:02 C# Input string was not in a correct format? »
What is wrong with my code? Here is my code: public override string ToString() { return String.Format("Number : {0} \nFloors:{1} \nStreet \n{ \nN...
(3) odpowiedzi
2017-02-06 10:02 How to set the rule for C# coding without use of Style Cop,Code Anylysis rule set,FxCop? »
We want globally to define C# coding style rule such as the variable declaration rule, method definition rule etc.For this we are looking for the Vis...
(0) odpowiedzi
2017-02-06 10:02 Confused about Directory.GetFiles »
I've read the docs about the Directory.GetPath search pattern and how it is used, because I noticed that *.dll finds both test.dll and test.dll_201702...
(1) odpowiedzi
2017-02-06 08:02 Injecting a logger with constructor dependencies »
I'm trying to refactor some code to use .NET Core dependency injection via mapping services in startup.cs. I would like to inject an IRequestDatabaseL...
(3) odpowiedzi
2017-02-05 15:02 How to properly pass json to a view »
I have a view with some javascript code for a pie chart in it. This view has an action method, where I am running some queries an converting the resul...
(1) odpowiedzi
2017-02-05 14:02 Getting reference of Startup.cs object »
Looking for an answer from a senior level ASP.NET architect who knows inner details of ASP.NET MVC. Here's the skeleton of a standard ASP.NET core ap...
(1) odpowiedzi
2017-02-05 12:02 How can I prove that boxing cause storing a variable in heap instead of stack? »
How can I prove that boxing cause storing a variable in heap instead of stack? I want some code to show my students that boxing cause storing a var...
(1) odpowiedzi
2017-02-05 11:02 Discord Bot [C#] does not execute the Command »
I started writing a Discord bot, but i already did manage to run into a problem. I pretty much just wrote what he wrote with some minor changes that s...
(2) odpowiedzi
2017-02-05 08:02 Asp.Net Core: Use memory cache outside controller »
In ASP.NET Core its very easy to access your memory cache from a controller In your startup you add: public void ConfigureServices(IServiceCollectio...
(1) odpowiedzi
2017-02-05 02:02 Inconsistent error message DOM betweeen jQuery validation and Postback »
My error message html structure from jQuery validation and from postbacks are different causing my validation errors to display differently. I need th...
(1) odpowiedzi