Data dodania Pytanie
2017-03-16 15:03 How to do .Net Web Api versioning/routing for an app client? »
So there are several parts to this question. The 2 example endpoints (in simplest form): user/{id}/profile movie/{id}/info I expect to create 2 con...
(0) 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 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-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
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 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 07:03 there is no project.json, global.json ... etc on .NET Core Solution with Visual Studio 2017 »
I make a project by File -> New -> Project -> Visual C# -> Web -> ASP.NET Core Web Application (.NET Core) -> Empty -> OK But there is no solution a...
(2) odpowiedzi
2017-03-13 12:03 Two identical razor views behave totally differently »
I have an ASP.NET MVC project. There is a home page, and an About Us page. To find out what went wrong, I copied everything in the home page into the ...
(1) 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-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 13:03 Can I override tilde-slash in Razor v2? »
Razor view engine supports tilde-slash paths out of the box like this: <script src="~/js/myscript.js" /> <!-- cool trick by the way!! -->...
(0) 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-12 06:03 How do Delete view and action get the model id? »
In a standard MVC app, scaffolding controller with views gives a Delete view with this Razor form: @using (Html.BeginForm()) { @Html.AntiForgeryT...
(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 16:03 Asp.net Web Api Token Authentication »
How to implement Token Based Authentication without using Katana ? there is any way to implement without Katana ? ...
(1) odpowiedzi
2017-03-11 02:03 SignalR cannot be used with .Net Core »
I am trying to install SignalR using NuGet package manager in my C# Asp.Net core project, but I get this error that SignalR is not compatible with .ne...
(2) odpowiedzi
2017-03-10 09:03 Pass value from EditorFor to method »
I have EditorFor in my View. Like this @Html.EditorFor(model => model.First().Link, new { htmlAttributes = new { @class = "form-control", pla...
(1) odpowiedzi
2017-03-09 19:03 How to add MessageHandler for a specific controller that is using Routing Attributes in ASP.NET WebAPI 2? »
It is possible to add a MessageHandler only for a specific controller that is using Route Attributes? I want to cut the request earlier in the pipeli...
(2) odpowiedzi
2017-03-09 18:03 ASP.NET MVC rendering sections for dynamically driven content (Widgets) »
I am receiving the following error in ASP.NET MVC. "the following sections have been defined but have not been rendered for the layout page" - Now I k...
(1) odpowiedzi
2017-03-09 13:03 ASP.NET MVC how to avoid CSRF attacks on GET method »
ASP.NET anitforgery token is only works with POST method. But for GET methods which are used to fetch some sensitive information, how we can avoid CSR...
(0) odpowiedzi
2017-03-08 20:03 Using IIS Rewrite URL for SEO to move all Cold Fusion CFM pages to ASP aspx pages »
I am moving a large database driven website from coldfusion .cfm to .net aspx. I am pretty much finished now, but I need to do 301 redirects on all t...
(2) odpowiedzi
2017-03-08 17:03 ASP.NET MVC 4.5 Map Partial View to Main View on Form submit »
Hello Mighty Stackoverflowers, I'm currently working on an ASP.NET MVC 4.5 application. I need to map the input values from my partial view to my mai...
(2) odpowiedzi
2017-03-07 21:03 I can access libraries not referenced directly »
I was following this tutorial for me to be familiar with ASP.NET core and other related tech. https://www.codeproject.com/articles/997216/restful-day-...
(1) odpowiedzi
2017-03-07 15:03 Browser scrolls to the bottom of the page automatically on load in Localhost »
This is the most strange problem I've ever seen. I'm using Visual Studio Enterprise 2015 Version 14.0.25425.01 Update 3 and developing .NET web applic...
(4) odpowiedzi
2017-03-07 14:03 ASP.NET Core: Launch URL vs. App URL »
What is the difference between App URL and Launch URL from ASP.NET Core? With these settings I can access my app both on HTTP on port 4099 and HTTP...
(1) odpowiedzi
2017-03-06 22:03 Dynamically created select list in razor syntax is not working »
I am NEW to Asp.Net and JQuery. I am working on dynamically creation of select lists in asp.net.I am using JQuery for such events like cloning, prepe...
(0) odpowiedzi
2017-03-06 03:03 Entity Framework Core multiple connection strings on same DBContext? »
I have an Asp.Net Core app with Entity Framework Core that I initialize as follows: services.AddDbContext<ApplicationDbContext>(options => ...
(1) odpowiedzi
2017-03-04 19:03 Unable to resolve service for type 'ClassLibrary.ApplicationDbContext' - an unhandled exception occurred »
I have added a Class Library to my solution so that I can use Work Authentication on my ASP.Net Core site. I have been able to add a migration and upd...
(0) odpowiedzi
2017-03-04 14:03 Change uploaded file name asp.net mvc »
I have such i big problem, i need to change the user uploaded file name, to some hash name, that build from the row fields of this table: The upload...
(2) odpowiedzi
2017-03-04 10:03 How to write custom actionResult in asp.net core »
In webApi2 i could write a custom ActionResult by inheriting IHttpActionResult. Sample : public class MenivaActionResult : IHttpActionResult { ...
(2) odpowiedzi
2017-03-04 08:03 Return a specific response from the root of an ASP.NET Core app »
I have created an ASP.NET Core app with some controllers which are working fine. The routing system is structured like https://something.com/api/cont...
(1) odpowiedzi
2017-03-03 23:03 ASP.Net inside Wordpress on Azure »
I have a Wordpress (PHP) site on Azure hosting at the root of the domain (i.e. http://example.com/ I want to host a completely separate ASP.net appli...
(2) odpowiedzi
2017-03-03 21:03 Wrong status code in ASP.NET Core middleware »
I have a problem in a simple piece of middleware I've created. The status code of the response is 200, even though I throw an exception in my controll...
(0) odpowiedzi
2017-03-03 10:03 How to handle null Model on all controllers aspnet core c# »
I have lots of models setup for my web api, none of which have any attributes against them. Here is a simple controller example public async Task&lt...
(2) odpowiedzi
2017-03-03 10:03 Visualstudio generated Webservice throws exception (no code written yet) »
A new, empty Visualstudio project, with only auto-generated code, throws an exception, when trying to call the webservice, from that webservices own d...
(1) odpowiedzi