Data dodania Pytanie
2017-04-21 21:04 pass data from one controller action to another controller action in ASP.Net MVC 5 »
I need to pass data from one controller action to another. I do not want to use a. Session b. TempData Logic Below code is about the forget pass...
(1) odpowiedzi
2017-04-20 17:04 Creating instance of Entity Framework Context slows down under load »
We noticed that some very small webservice calls were taking much longer than we expected. We did some investigation and put some timers in place and ...
(0) odpowiedzi
2017-04-20 12:04 Update List in ViewModel with Ajax ASP .NET MVC »
I have a List (List) of Model objects which is presented in a view. I would like to add to that list without refreshing the page - therefore i thought...
(3) odpowiedzi
2017-04-20 08:04 how to add section Scripts to asp.net mvc Razor View without layout page »
My mvc view layout is null. how can i add script inside view. @{ Layout = null; } @section Scripts{ <script type="text/javascript"> $(...
(3) odpowiedzi
2017-04-19 18:04 First Ajax Request in Chrome Fails, succeeds in Firefox and IE »
I have an Angular2 application talking to an ASP.NET WebAPI endpoint, that uses Windows Auth for authentication, that is failing to respond on first r...
(0) odpowiedzi
2017-04-19 11:04 ASP.NET Web API - Getting 404 when posting a Base64 string with HttpClient »
Not sure what I'm doing wrong here. Trying to post a Base64 encoded byte array, and getting a 404. The thing is, when I try it with a normal value (...
(1) odpowiedzi
2017-04-18 10:04 Is there something like "RewriteToAction"? »
Knowing RedirectToAction, I was looking for something similar to keep the URL stable for the user and still pass responsibility from one action to ano...
(1) odpowiedzi
2017-04-17 06:04 How to turn autocomplete off and prevent pre-population of a field »
How do I prevent my Username and Password ASP.NET/C# TextBox fields from getting pre-populated in Chrome, even if Google Smart Lock has saved it. I c...
(2) odpowiedzi
2017-04-15 15:04 ASP.NET MVC Exercise-displays customer orders »
I use your site for first time and will be very thankful if someone helps me with my exercise for ASP.NET MVC. Please someone explain to me step by st...
(0) odpowiedzi
2017-04-14 23:04 How to create Asp.net mvc secure login page authentication? »
Hi I have an important task while being completely lost. My team is building an external website and have already purchased the certificate. I am lo...
(2) odpowiedzi
2017-04-14 20:04 Getting values with angular for dropdown »
I´m working in WebApi Asp.Net with Angular, I want to know how to fill a simple dropdown using select View: <select class="form-control input-sm...
(1) odpowiedzi
2017-04-13 19:04 asp.net razor and jQuery autocomplete plugin »
Hey i want to autocomplete this html text input: $("#Supplier").autocomplete({ source: availableTags }); and i have ar...
(1) odpowiedzi
2017-04-13 17:04 Configuring JsonOutputFormatter using AddMvcCore »
I'm trying to setup a slimline ASP.NET Core pipeline and am using AddMvcCore instead of AddMvc. I've copied this mostly from AddMvc, omitting the Razo...
(2) odpowiedzi
2017-04-12 23:04 MySQL Error with ASPCORE using C# »
I have a data base with three tables. Users, messages and commits. The site boots up and I can login and register just fine When I go to post a messag...
(0) odpowiedzi
2017-04-09 19:04 Prefill Html Editor Asp.net MVC »
I want to fill with a value of the @Html.Editor when the page is loaded. Here is my failed attempt : @Html.EditorFor(m => m, new { htmlAttribute...
(4) odpowiedzi
2017-04-09 19:04 Reading keys from app.config »
Reading keys from app.config is not working I have 4 layers in my solution: Business Layer Data Access Layer Presentation Layer Shared Layer I ad...
(1) odpowiedzi
2017-04-09 16:04 ASP.NET Core Deploying App Fails with Apache »
I'm currently trying to learn ASP.NET Core it's really awesome so far :) I've installed the Core Runtime and everything else needed to run a WebApp, ...
(1) odpowiedzi
2017-04-09 15:04 The rest Api returns data but it is not showing up on the page »
I am trying to fetch data from the rest api that I made. The api returns data but the angular fails to load it. I could see the data being passed from...
(1) odpowiedzi
2017-04-08 22:04 How to determine the cause of 500 error »
I'm using IIS Express and an ASP.NET Core application I made. In my most recent changeset I start getting Failed to load resource: the server respond...
(1) odpowiedzi
2017-04-08 20:04 Inline logo and company name in navbar »
I am beginner in ASP.NET MVC and in default project template I'm trying to add a logo in navbar with the company name, I have successfully added logo ...
(1) odpowiedzi
2017-04-08 12:04 Using Entity Core with VS 2015 with .NET Core »
I am using Visual Studio 2015. And I am develop app with Entity.Core. But I am getting error while using Add-migration command. I identified my model...
(1) odpowiedzi
2017-04-06 19:04 Custom error handling globally in asp.net web api »
I am using asp.net web api. [Route("api/employee")] [HttpPost] public dynamic GetData(EmployeeModel model) { EmployeeService emp = new Employee...
(0) odpowiedzi
2017-04-06 17:04 Getting error when trying to order by in LINQ »
I have implemented custom paging in my .NET MVC application as you can see in down below code: var draw = Request.Form.GetValues("draw").FirstOrDefa...
(2) odpowiedzi
2017-04-06 13:04 ASP.NET WebAPI vs MVC subtle behavioural deviations when it comes to json-(de)serialization of parameters »
Let's assume we have the following simple ajax-call: $.ajax({ url: "/somecontroller/someaction", data: JSON.stringify({ someString1:...
(1) odpowiedzi
2017-04-05 18:04 Icon after text box in Bootstrap »
I am trying to display an icon after a text box within a form-horizontal Bootstrap form. So I set my text-box width to 80% and added the icon. <di...
(1) odpowiedzi
2017-04-05 13:04 Razor reference not working for .NETCoreApp 1.1 with Resharper »
I am trying to use the Razor framework within an ASP.NET Core project (.NETCoreApp 1.1), however, after retrieving the package from Nuget, the referen...
(2) odpowiedzi
2017-04-05 02:04 ASP.Net Web API Routing with optional parameters »
I Have a Web API endpoint like something below - [HttpPost] [ActionName("ResetPassword")] public HttpResponseMessage ResetPassword(string userN...
(1) odpowiedzi
2017-04-04 10:04 ASP.NET Core MVC Loading Session Asynchronously »
I have been reading the official Session and application state documentation and have stumbled upon the following paragraph: Loading Session async...
(1) odpowiedzi
2017-04-03 11:04 Get first value of Model's List in jQuery (document).ready using Razor? »
How can I get the value of the first item from the model's List? My ViewModel: namespace TestWeb { public class NavViewModel { public NavView...
(3) odpowiedzi
2017-04-03 10:04 C# 7 local function not working as expected and no errors being displayed »
I have an Asp.Net MVC App running with framework version .NET 4.5 and I'm using VS2017 pro version. Users can upload attachments including but not lim...
(1) odpowiedzi
2017-04-02 21:04 Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' »
I'm making a web application using WEB API 2. Previously, my project ran fine without any errors. Errors only came after I had updated my nuget packag...
(1) odpowiedzi
2017-04-02 10:04 Using HttpContext outside of a Controller - Bad practice? »
I've been writing some logging services for my ASP.NET Core API. I wrote a middleware that will log every action being called (cross-cutting concern, ...
(1) odpowiedzi
2017-03-31 19:03 OWIN ApiController access to the request body/stringified JSON »
This is in OWIN & .Net 4.5.2 Using debug I'm proving this controller's method is being called by the web request. My thing is the request body c...
(1) odpowiedzi
2017-03-30 20:03 Getting error in HtmlHelper/Razor in asp.net mvc-5 »
I have created one cshtml file. When I run/build the solution in visual studio the solution builds fine and even the functionality wise (as far as I c...
(1) odpowiedzi
2017-03-30 17:03 External Aspnet Web Api Authentication »
I am using https://github.com/EddyVerbruggen/cordova-plugin-googleplus for external authentication in a mobile app. In the response from google I get ...
(0) odpowiedzi