Data dodania Pytanie
2017-03-18 21:03 Create customized NavigationTransitionInfo for Page Navigation Transitions in UWP »
I am working on a Universal Windows (UWP) app and I want to add some page NavigationTransitions to my pages . I know that I can use default Navigatio...
(0) odpowiedzi
2017-03-18 14:03 Ref returns restrictions in C# 7.0 »
I am trying to understand the following excerpt from an official blog post about new features in C# 7.0 concerned with ref returns. You can onl...
(3) odpowiedzi
2017-03-18 13:03 Getting data on from view and render it in partial view of Bootstrap - Modal »
There is a Grid with data which is loaded in View on selecting Edit button of a record in a row i was suppose to load a Bootstrap - Modal with selecte...
(0) odpowiedzi
2017-03-18 13:03 Exception on GET call on a table using Entity Framework in WebAPI »
I'm trying to create a WebApi to read a data from the DB using Entity Framework. My data model design looks like this: I have added a WebApi contr...
(1) odpowiedzi
2017-03-18 11:03 Using enum value in XAML »
I have defined an enum in C# public enum PointerStyle { Pointer, Block, Slider } ; I am using it as a dependency property on a WPF custom con...
(1) odpowiedzi
2017-03-18 10:03 Obtaining file extended properties in .Net Core »
I want to read extended properties like Product Version, Author, etc. from a file using .Net Core. There were classes like FileVersionInfo that used ...
(2) odpowiedzi
2017-03-18 09:03 What's the difference between Response.WriteAsync and returning a string »
Hi I was wandering if someone can explain to me the difference between these two methods for returning data from a controller. Is there an advantage o...
(1) odpowiedzi
2017-03-18 07:03 ASP.NET Core doesn't service filenames with which contain %20 (space) »
Files which contain a %20 (space character) in it's name doesn't get downloaded/opened when accessed via url. Steps to Reproduce: Create an empty ...
(0) odpowiedzi
2017-03-18 04:03 How to POST and Catch a view model with a parent object and list of child objects in EF MVC? »
I want to add a family which has many members and can have many houses. I am trying to make a form and submit the object family with collection of oth...
(1) odpowiedzi
2017-03-17 23:03 Get more facebook comments using Skybrud »
I'm developing an app which connects to a specific public page on facebook and search for the comments in a specific post, we have to look all the pos...
(1) odpowiedzi
2017-03-17 20:03 collect variables and shorten code »
I am making a project, where I have to compare to rooms to each other and print if there is a change in a room. I made this piece of code there is w...
(2) odpowiedzi
2017-03-17 13:03 if statement always print text »
I need to print all the code under my question if there is data in @store.GuaranteePolicy print all the <tr>. If there is no data, then print n...
(1) odpowiedzi
2017-03-17 10:03 What was the design rationale for making void not a primitive type? »
When using reflection Type.IsPrimitive on a void type returns false.Coming from a C++ background this was surprising. Looking at the C# 6.0 spec (Pag...
(3) odpowiedzi
2017-03-17 06:03 ASP.Net WebApi: return data in json and xml formats »
My ASP.Net WebAPI needs to return data that can be consumed in XML or Json format. The get method returns an object that contains objects of other typ...
(3) odpowiedzi
2017-03-17 05:03 How to allow for multiple types deployment? »
In my search for the meaning of life, I stumbled upon a blog post that mentioned that your deployment strategy is not your architecture, it is simply ...
(3) odpowiedzi
2017-03-17 00:03 How to port swift based cocoapods to Xamarin »
I am trying to port cocoapods to xamarin. Objective C based cocoapods can be ported by converting it into a static library(.a) and subsequently conve...
(1) odpowiedzi
2017-03-16 23:03 Delegate return type different with lambda function »
Consider this MCVE: using System; public interface IThing { } public class Foo : IThing { public static Foo Create() => new Foo(); } public...
(3) odpowiedzi
2017-03-16 22:03 Quicksort with Linq performance Advantage passing T[] vs. IEnumerable<T> »
Just for fun I built a quicksort implementation in C# with Linq: public static IEnumerable<T> quicksort<T>(IEnumerable<T> input) wh...
(2) odpowiedzi
2017-03-16 21:03 Using C# 7 features inside of a View in an ASP.NET MVC Core project »
I've looked for other questions related to this, but none seem to be quite what I'm looking for. I have a website running on ASP.NET Core with the ne...
(2) odpowiedzi
2017-03-16 20:03 Unable to Update List Collection from View to Controller Method »
I am trying to catch a list of Bullet_Points from view to Edit Method. However i am unable to save the collection items to database. @for (int i = 0...
(1) odpowiedzi
2017-03-16 16:03 Property value of "base" in debugger »
I'm debugging the following code: class A { public virtual string X => "A"; } class B : A { public bool OwnX { get; set; } = true; p...
(1) odpowiedzi
2017-03-16 15:03 How to serve(GET) Complex(Nested) JSON from C# Web API Visual Studio 2017 RTM that has a Many-to-Many relationship? »
I've been stuck on this problem for a long time now. My environment: Visual Studio 2017 RTM (Using the default .net core version of this IDE) Web...
(3) odpowiedzi
2017-03-16 13:03 Unable to display file in browser angularjs via webapi »
I am trying to download a file returned from Web API to angular client. The problem is that the file does not open, i.e pdf the browser displays "fail...
(1) odpowiedzi
2017-03-16 11:03 ASP.NET Core - Download .exe returns 404 error »
I have a ASP.NET core MVC application and in the wwwroot folder, I've added another folder called "Shaun" and in that folder I've dropped an exe to tr...
(2) odpowiedzi
2017-03-15 19:03 Cannot find type name in schema definitions »
I've started using Swashbuckle with Web API. None of my types are getting rendered correctly in my Swagger UI. On every method, I see something like...
(1) odpowiedzi
2017-03-15 17:03 Asp.net Placeholder equivalent in MVC 5 (Razor) »
I'm looking for the Asp.net placeholder equivalent in MVC5 using Razor. My main problem is that I have too much logic in views/partial views, so I ne...
(1) odpowiedzi
2017-03-15 15:03 MVC Call Javascript func from Razor code »
I can't call a func I wrote in the script from the Razor code where I pass the parameters to the controller. Anyone have any Idea ? MyCode: <scr...
(1) odpowiedzi
2017-03-15 14:03 Parallel.ForEach, MaxDegreeOfParallelism=1, stable execution? »
Is Parallel.ForEach() with MaxDegreeOfParallelism==1 guaranteed to process the input enumerable in-order? If the answer is "no", is there a way to en...
(0) odpowiedzi
2017-03-15 14:03 Migrating data when adding one-to-one relationship in EF Core? »
After adding a new one-to-one relation to one of my table I cannot figure out how to add default data for existing rows in my database. My database b...
(1) odpowiedzi
2017-03-15 14:03 Custom Code activity is not working to create a follow for an Order in dynamics crm »
I am begginer to the Custom Code activity and I tried to create a an auto follow for a specific order when a subgrid on order form is updated. But, I ...
(2) odpowiedzi
2017-03-15 13:03 Self referencing loop detected »
I have read a lot of previous solutions for this problem but none worked for me. I have a circular relation between Event and User object: public cl...
(2) odpowiedzi
2017-03-15 10:03 difference of float/double conversion betwen VS2012 and VS2015 »
I have the following code: float a = 0.02f * 28f; double b = (double)a; double c = (double)(0.02f * 28f); Console.WriteLine(String.Format(" {0:F...
(1) odpowiedzi
2017-03-15 01:03 DependencyResolver in System.Web.Http.HttpConfiguration vs DependencyResolver in System.Web.Mvc »
I am working on the new ASP.Net Web API project using Microsoft Unity as IoC container. I am a little confused which one is correct. If I set the De...
(1) odpowiedzi
2017-03-14 20:03 Inline comments for if/else on the same line with the opening brace? »
Which of the below variants is better/best, and why? NOTE: the comments below are intended to document the result of the if/else operation (e.g. "cat...
(0) odpowiedzi
2017-03-14 19:03 ASP.net Razor MVC5 insert @{} inside javascript within my cshtml page »
new to razor so here is my question. I am wanting to add some dynamic code to my JavaScript created button: $('<button ' + '"class="btn btn-d...
(1) odpowiedzi