Data dodania Pytanie
2017-08-09 18:08 passing a list to a list<T> »
I am working with openxml, and have something that is pulling my hairs up, basicly i am editing a pré existing document, it is a template, the templa...
(1) odpowiedzi
2017-08-08 15:08 Why doesn't my web service return aaData ? »
I have written a webservice to perform sorting, search on server side and return data to jquery data table. public void getUsers1(int iDisplayLength,...
(0) odpowiedzi
2017-08-07 17:08 ASP.NET Core route to different actions with the same url with different params »
I'm building api with such routes: /items and /items/{id}. For now I want to route this routes to two different actions. I am not able to configure it...
(2) odpowiedzi
2017-08-06 14:08 Calling webapi only when client has install certificate in his machine »
i wanted to add a layer of security via certificate to access hosted asp.net webapi. i want that only those client who have install certificate in th...
(1) odpowiedzi
2017-08-06 09:08 C# .net OWIN - starting a route for a WebAPI with a Wildcard dynamic URL »
I have a WebApi hosted in OWIN and I was wondering if it was possible to have the beginning of the URL a "wildcard", so for example if I have a WebAPI...
(2) odpowiedzi
2017-08-04 10:08 receive complex object and handle it »
I am working with asp.net web api, and my client side is in vuejs, i pass a object with json that is like this: [ { "key": "Table", "rows":...
(1) odpowiedzi
2017-08-01 18:08 Apply 'numerical' sort to odd data structure with multiple decimal points / periods »
I've got an ASP.NET application that's pulling data from an Oracle table into a GridView. I have absolutely no control over the Oracle data, it is wh...
(1) odpowiedzi
2017-08-01 14:08 SimpleInjector verifies OK, but throws Parameterless constructor error on first request »
I've created a .NET 4.5 WebApi app and I'm attempting to use SimpleInjector. Everything seems to register OK - when I do container.Verify(), my WebAp...
(1) odpowiedzi
2017-07-31 18:07 Efficient joining the most recent record from another table in Entity Framework Core »
I am comming to ASP .NET Core from PHP w/ MySQL. The problem: For the illustration, suppose the following two tables: T: {ID, Description, FK} and...
(2) odpowiedzi
2017-07-31 17:07 Receiving FileActionResult between Services »
I have a route returning a pdf file as a FileActionResult: [HttpGet] [Route("getPdf")] public async Task<IHttpActionResult> GetPdf() { retu...
(0) odpowiedzi
2017-07-31 12:07 Pass a Model property as a parameter to an Url.Action »
I'm developing an ASP.NET MVC 5 app with C# and .NET Framework 4.7. I'm having troubles trying to pass parameters with Url.Action. When I use this: ...
(2) odpowiedzi
2017-07-30 05:07 Is it possible to intersect Request.Headers with another list? »
I am attempting to intersect a list of headers: var validHeaders = Request.Headers.ToArray().Intersect(ValidHeaders.List); Where ValidHeaders are d...
(1) odpowiedzi
2017-07-30 02:07 ASP.NET MVC return View() hangs »
Hello everyone I am trying to fix an annoying issue that I am having with ASP.NET MVC. I have created a new web application and I am noticing that ev...
(0) odpowiedzi
2017-07-29 14:07 The anti-forgery cookie token and form field token do not match when using WebApi »
I have a single-page app (user loads a bunch of HTML/JS and then makes AJAX requests without another call to MVC - only via WebAPI). In WebAPI I have...
(1) odpowiedzi
2017-07-29 05:07 How do I use C# to get the path to chrome.exe on Windows? »
I want to launch chrome from my automated test framework so that I can test my server-side ASP.NET code. What's the best way to determine the locatio...
(2) odpowiedzi
2017-07-28 19:07 Unable to copy file .exe in Visual Studio 2017 »
I have an asp.net core project that references .NET Framework and I'm using Visual Studio 2017 Enterprise. When I try to build my solution, I came acr...
(1) odpowiedzi
2017-07-28 16:07 WebApi endpoint always gives "404 not found" »
I am trying to implement WebApi endpoints in a brand new web app but no matter what I try I always get "404 not found" when trying to do a GET from sa...
(2) odpowiedzi
2017-07-28 09:07 How to set different routes for the same Controller method with different parameters? »
I have the ReportController that llooks like this: public IActionResult ReportDetails(int? reportId){ .... } and public IActionResult ReportDe...
(4) odpowiedzi
2017-07-27 14:07 Populating a DropDownList with NpgsqlDataReader - Selected Value is Empty »
I am attempting to populate my DropDownLists from a NpgsqlDataReader. These lists are coming from different tables. Page is loading a Product from the...
(1) odpowiedzi
2017-07-26 20:07 ValueTuple not working in Razor views with MVC 5 »
I have an ASP.NET MVC 5 project in Visual Studio 2017 and after successfully adding C# 7 support (which has worked for me so far), I tried using tuple...
(1) odpowiedzi
2017-07-26 17:07 ASP.NET Alphabetic Sort is not working. No Error Message »
Why is my name and date sort not working. When I click the column link nothing happens to my data and no error. When I run a debug and step through th...
(1) odpowiedzi
2017-07-25 09:07 ASP.NET select an item and show it's price DropDownListFor »
I'm trying to select an item to write it's price into an input so I can calculate taxes and stuff. I managed to populate the DropDownList but can't f...
(1) odpowiedzi
2017-07-24 23:07 ASP.NET SelectList obtain value and display it »
I'm trying to select an item an then display it in the view but i don't know how to pass the value to the controller. this is my code created via sca...
(0) odpowiedzi
2017-07-24 18:07 Razor variable into Javascript »
I am trying to set a JavaScript variable from a model variable using Razor, and can't figure out what is wrong. In the CSHTML page, I've tried the fol...
(1) odpowiedzi
2017-07-24 13:07 SSO not working on ASP.NET WebApi self hosted »
I have a SSO provided by IIS ASP.NET MVC 5 Web App and it works with the ASP.NET WebApi project hosted on IIS, but the same Startup.cs is not working ...
(0) odpowiedzi
2017-07-24 10:07 Open HTML modal popup from C# code behind »
I am using a HTML modal , HTML <!-- Modal --> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLab...
(1) odpowiedzi
2017-07-23 21:07 DropDownList issue with Enums »
I'm currently localizing an open source project and I have an issue with Enums. Here is my Enums.cs (not the whole file, just part of where the issu...
(2) odpowiedzi
2017-07-23 20:07 Token From Different Server Causing Continuous Crashes »
We have an ASP.NET Core application which has the default authentication system and is hosted on Azure. Recently, we created a new AppService and rout...
(1) odpowiedzi
2017-07-22 22:07 Web API Concurrancy Issue : Static web methods migrated to Per Request web api controllers »
Application : Asp.net with static web methods declared on page migrated to asp.net web forms with static web methods converted to web API 2 controlle...
(0) odpowiedzi
2017-07-22 17:07 Convert Web Form to Razor Syntax »
I have the following snippet as web form. Need to convert it to Razor, but cannot find the corresponding html helpers. This snippet contains a FileUpl...
(0) odpowiedzi
2017-07-22 13:07 ASP.NET Core MVC anti forgery »
Trying to turn on anti forgery in core mvc project but with no luck. What was done: Filter added to automatically check anti forgery token on every P...
(1) odpowiedzi
2017-07-22 08:07 Validate Textbox by allowing only numbers and float using Jquery »
I have been trying to validate my asp.net text-box to accept only numbers and '.' For that I wrote a function with the help of Internet (sorry am ne...
(2) odpowiedzi
2017-07-22 01:07 Simple web page that changes image onClick in .NET »
I want to create simple Web site that shows two images, and when you click on one image, site gives you new one on the old place. I am not sure what ...
(0) odpowiedzi
2017-07-21 13:07 coded ui test project, obtain value of asp label »
Created a simple calculator app in webforms. User enters a number in a text field MainContent_numberTb and clicks on results button. Added a new 'co...
(1) odpowiedzi
2017-07-21 11:07 C# Web Api 2 How to redirect request to default controller »
I've got a situation where most of the requests will be processed with dedicated controllers. config.Routes.MapHttpRoute( name: "Data...
(1) odpowiedzi