Data dodania Pytanie
2017-10-12 15:10 Razor syntax to complete an MVC form »
I'm very new to using Razor with C# and am conducting this project in order to try to better my understanding of it. This application is supposed to,...
(2) odpowiedzi
2017-10-11 22:10 Odata with Asp.net and angularjs »
I am following up in the course AngularJS Front to Back with Web API using ASP.net, we are trying to do queries using ODATA so i added this code in th...
(1) odpowiedzi
2017-10-11 20:10 ASP.NET Core 2.0 Dependency Injection default instance »
I'm using ASP.NET Core 2.0 and Microsoft.Extensions.DependencyInjection. I have a few class where I don't want to specified its implementation or I do...
(2) odpowiedzi
2017-10-11 17:10 How do I (re-)enable real-time CSS editing in Visual Studio? »
In Visual Studio 2015: Create a new empty C# ASP.NET web application (Framework 4.6). Add WebForm1.aspx: <%@ Page Language="C#" %> <!DOCTY...
(1) odpowiedzi
2017-10-11 16:10 Correct way to convert datetime timezone for display »
We are developing a website and currently, the timezone of the website and database is in German time zone (European standard time zone). But the appl...
(2) odpowiedzi
2017-10-11 15:10 Cannot get a dropdown list to pass data from view to controller? »
I have set up an MVC web app using entity framework for a leave request system. The model, RequestModel, has a value LeaveType, which I would like to ...
(1) odpowiedzi
2017-10-11 06:10 Which one to choose HttpRequestMessage(HttpClient) or HttpWebRequest? »
I am into a scenario where my code was written with HttpWebRequest/HttpWebResponse (System.Net). This was on.Net4.5.2. But for platform independence r...
(1) odpowiedzi
2017-10-08 14:10 Postback on CheckedChange »
I want to filter a list based on some checkboxes, therefore when I (un)check a checkbox I would like to do a postback to the server and do my filterin...
(1) odpowiedzi
2017-10-07 19:10 The following sections have been defined but have not been rendered for the layout page "~/Views/Shared/_Layout.cshtml": "Scripts" Login/Register »
so I have this weird problem, and honestly I have no clue when it stopped working, so it's hard for me to understand where's the problem. Basically, t...
(1) odpowiedzi
2017-10-07 16:10 How do I target .NET Standard 2.0 in a freshly created .NET Core 2.0 web app? »
I've just created a fresh project using dotnet new web. My Google-foo may be failing me, but I didn't find anything relating to my answer (please link...
(2) odpowiedzi
2017-10-06 17:10 .gitignore for asp.net razor project »
I'm learning asp.net core 2.0 and I've created a new project with the command dotnet new razor -o myworkingdir. I want to put this project into a git...
(1) odpowiedzi
2017-10-05 13:10 We have an app that sends image to dot net server. Sometimes when network is flaky - »
enter image description here the image is not uploaded on server. Any input what area to look into - how to troubleshoot - any tools to identify the ...
(0) odpowiedzi
2017-10-04 19:10 DropDownListFor using ViewBag of SelectListItems »
Controller for partial view public ActionResult _AddRedirect() { var domains = (from d in DB.Tokens orderby d.Domain ...
(2) odpowiedzi
2017-10-04 10:10 Passing a multi-line string to Controller to be encrypted and passed back to a Razor view »
My application should be a very simple ASP.Net MVC interface that gets a multi-line string from the user, and return it encrypted upon submit. The pro...
(1) odpowiedzi
2017-10-04 04:10 ASP.NET Exception-Handling: ExceptionFilterAttribute vs Overwrite ExecuteAsync »
In ASP.NET, Microsoft suggests us to use ExceptionFilterAttribute to handling exceptions. Exception Filters But I think we have other ways to handlin...
(1) odpowiedzi
2017-10-03 23:10 Facebook authentication is not remembered »
I connected facebook external authentication like this: In Startup.cs services.AddIdentity<ApplicationUser, IdentityRole>(options => { ...
(0) odpowiedzi
2017-10-03 18:10 Downloading byte[] of generated pdf using nodeservices in Asp.net Core 1.1 »
i'm trying to download a nodeServices generated pdf file that is in the form of byte array. here is my original code: [HttpGet] [Route("[action]/{app...
(1) odpowiedzi
2017-10-02 14:10 ASP.NET exceptions not going through Application_Error »
I'm trying to implement global error handling in an ASP.NET Web API 2 app. To kick things off, I have a controller and I simply throw new Exception("o...
(0) odpowiedzi
2017-10-02 09:10 dynamic model in MVC »
Is there a possibility of creating dynamic model in MVC in asp.net like I have a model: public class Head { public long Id { get; set; } publ...
(2) odpowiedzi
2017-09-28 14:09 ASP.NET WebApi versioning not working »
I'm trying to implement api versioning following this tutorial. So in my startup I have: var constraintResolver = new DefaultInlineConstraintResolver...
(1) odpowiedzi
2017-09-28 08:09 Using Repository pattern - selecting specific fields of the entity for EF performance reasons »
So, I am having a hard time with this Repository pattern. In lots of articles, posts and etc. I read that the repository should return only database o...
(1) odpowiedzi
2017-09-27 10:09 DataTables json language file on asp.net mvc application »
I have a web application asp.net mvc. In this application, I use DataTables that I configure like that to have the french language: <script type="...
(1) odpowiedzi
2017-09-26 18:09 C# Loop through Months Of Year with format »
I want to loop through months of year with MM format , i do it but months format is 1, 2, 3, ...etc i want the format to be 01, 02, 03 how i do it ...
(4) odpowiedzi
2017-09-26 16:09 C# How to set button text of different buttons to the same textbox »
I have a couple of buttons and a textbox. I want to make it so that when I press button1 the text from the textbox goes to button and when I press but...
(1) odpowiedzi
2017-09-26 15:09 Bind from any request input: FromQuery, FromRoute, FromForm »
In ASP.NET Core, I need the ViewModel members to be data bound to the incoming request data. I don't care if it comes from Form post, Query string or ...
(1) odpowiedzi
2017-09-26 15:09 How to test methods with attributes with asp.net core 2? »
My project is an ASP.NET Core 2.0 web application. How can I test if my own written attribute is working fine by calling a method containing the attr...
(1) odpowiedzi
2017-09-26 12:09 ASP.NET Web Api configuring a specific route not executing message handler »
I am trying to configure a specific route to execute a message handler before it hits the controller, however the message handler is never executed. ...
(1) odpowiedzi
2017-09-25 23:09 Unable to cast resolved object to generic abstraction autofac C# »
Hey I try to cast my object to interface which this object should implements. But during executing code I have following error: Unable to cast obj...
(1) odpowiedzi
2017-09-25 19:09 ASP.NET Core 2.0 OpenIdDict with Facebook mobile application »
Could you please provide me an example or description how to return an access token to the mobile application with facebook login. Here is the workfl...
(1) odpowiedzi
2017-09-25 18:09 Where is HttpContext.Timestamp in ASP.NET Core MVC? »
I would like to get the initial timestamp of the current HTTP request in an ASP.NET Core MVC controller. This timestamp used to be accessible (pre ASP...
(1) odpowiedzi
2017-09-25 17:09 ASP.NET MVC 5 Editor for 2-dimensional array »
I have a model with two-dimensional array in it: public class Matrix { public ValidInt[][] Data; [Range(0, 8, ErrorMessage = "Введите ...
(1) odpowiedzi
2017-09-25 09:09 String.Equals GID returning false? »
I have the following C# code in my ASP.NET MVC application. I try to compare 2 string using the Equals method, with culture = "vi". My code below: ...
(2) odpowiedzi
2017-09-24 00:09 Get all users with a specific role in ASP.NET Core 2.0 »
I'm just getting started with porting a application from ASP.NET MVC 5 to ASP.NET Core 2.0 (with EF Core and Identity). All has been going smooth, but...
(1) odpowiedzi
2017-09-23 23:09 There is no argument given that corresponds to the required formal parameter 'options' »
I'm working on my first application in .Net Core. I'm getting this build error for some reason: Error CS7036 There is no argument given that corr...
(2) odpowiedzi
2017-09-23 02:09 Too many redirects - Owin External Login with Facebook Asp.Net »
I'm creating a web-api where I need to log people in using Facebook. I'm following this guide. Once I provide my credentials to Facebook, it should ...
(1) odpowiedzi