Data dodania Pytanie
2017-12-09 16:12 How to use HttpClient to consume the data from an xml content site and return them as List of Json object? »
Here, I have a sample link which contains xml data as shown below. As you can see on the xml content from the given link, there are xml element <Di...
(1) odpowiedzi
2017-12-09 06:12 Asp.net MVC Razor not encoding html »
My understanding is that the Razor markup will encode html strings, but I tried testing it out with following code in MVC view and it did not encode t...
(1) odpowiedzi
2017-12-08 16:12 dotnet bundle not working in .net core mvc application »
I try to use bundleconfig.json, which is standard added to the project when I started the prjoect. I read every where they say you have to run dotne...
(0) odpowiedzi
2017-12-08 15:12 Catch an invalid HTTP request method globally »
I would like to restrict my Web API endpoints to certain HTTP methods, such as GET and POST. I have searched the internet and I found out that you can...
(2) odpowiedzi
2017-12-08 12:12 insert table in a single cell inside repeater »
I am trying to build a table structure using asp.net Repeater like this below: column 1 | Column 2 Row1 cell1 c...
(4) odpowiedzi
2017-12-08 08:12 Clear table before reloding the data in a table »
I am trying to bind data from the database. what is happening is that it binds every 5 seconds. Now its binding properly but it does not clear the ear...
(3) odpowiedzi
2017-12-07 18:12 How to format Date, Time, Number in ASP.NET Core 2.0, RAZOR Tag Helpers »
I'm facing problems trying to format DateTime and Numbers in ASP.NET MVC Core 2.0 App using Razor Tag Helpers. Following the good practices I would l...
(0) odpowiedzi
2017-12-06 18:12 ASP.Net WebApi do not return form data via Content »
I don't know if it's a bug but i'm unable to get raw request on server side. Consider following controller method: [AllowAnonymous] [Route("api/sayH...
(1) odpowiedzi
2017-12-05 21:12 Download Large File Using Web API Returning OutOfMemoryException »
I've tried using numerous questions/answers on SO - but can't seem to overcome the OutOfMemoryException I receive when trying to download a 200MB zip ...
(1) odpowiedzi
2017-12-04 16:12 MVC Custom http headers set in web config but not all calls having them set »
I have the following tags set in my MVC web application. <system.webServer> <httpProtocol> <customHeaders> <remove ...
(0) odpowiedzi
2017-12-03 14:12 Why can't we use *.cshtml files as custom error pages now that (v4.7) we have "Razor Web Pages"? »
B"H Trying to revamp my global error handling, and running into the mess that is ASP.net error handlers. I would really like to consolidate my solut...
(1) odpowiedzi
2017-12-03 09:12 AdLockOptimistic equivalent in razor pages »
I'm working on a .Net Razor Web Page and I want to know how to block the read registry (previously I used AdLockOptimistic in ADO) until the update is...
(1) odpowiedzi
2017-12-02 18:12 DisplayFor helper does not populate records from database in delete view »
i want to delete a record from my database , but in the delete confirm view the DisplayFor Helper Does Not Show any record from my database DisplayN...
(1) odpowiedzi
2017-12-02 11:12 Use remove/hide instead of using split and join in jQuery »
I would like to remove all £ symbols that appear on a webpage (.aspx page) I am using the below jQuery; $(':contains("£")').each(function(){ $...
(1) odpowiedzi
2017-12-02 08:12 Exporting checkbox data to excel using jQuery datatables »
I have an <ASP:GridView> with few columns with boolean values returned from SQL Server. I am using datatables plugin looks good but when I expor...
(1) odpowiedzi
2017-12-01 21:12 Asp.net core post api return not found »
I have a post api in asp.net core 2.0 that return a simple message (for test ). [Produces("application/json")] public class LoginApiController : Co...
(1) odpowiedzi
2017-11-30 22:11 Return error code instead of message in ASP.NET Identity API »
I am building a ASP.NET Web API endpoint for creating managing users. This is a REST interface and I'd like to return error codes when something goes ...
(0) odpowiedzi
2017-11-30 18:11 How to stop on the Sign Up Form when web page performs Postback? »
I'm working on my final year project. In which: I have Login and Signup forms on one page (WebForm): When user click on anchor Sign Up the DropDown ...
(2) odpowiedzi
2017-11-30 16:11 C# ASP.NET Core Serilog add class name and method to log »
I recently added logging to my ASP.Net Core project. Currently the log writes to a .txt file in this format: {Timestamp:yyyy-MM-dd HH:mm:ss.fff zz...
(2) odpowiedzi
2017-11-29 23:11 Correct way of streaming a CSV of unknown size from memory »
I have a database that has a table with just over 2 million records of about 20 columns. The user is able to query the database and limit the number o...
(0) odpowiedzi
2017-11-29 19:11 Adding dependency as DLL or adding as a project »
We have an application written in asp.net mvc. Now we have written common db context & entities module (2 projects/class library) which are requ...
(3) odpowiedzi
2017-11-29 15:11 Executing multiple SQL commands INSERT and SELECT using SQL Reader and Response.Write »
Response.Write("text"); is rendering on my page load but when I click my button, it does not print. I am trying to carry out two INSERT commands and ...
(1) odpowiedzi
2017-11-28 16:11 How to prevent ViewData content encoding in ASP.Net Core Razor? »
This is fragment from View file: @{ ViewData["Title"] = "qwerty **Николай**"; } <div class="row"> <div class="grid-x grid-padding...
(1) odpowiedzi
2017-11-28 16:11 Date is empty in view textboxfor when adding type "date" »
Weird problem that is probably very obvious. In my view model I have a date, which I set in the controller. When I render the textbox in the view, it ...
(2) odpowiedzi
2017-11-28 01:11 Windows authentication on web.api »
I have a self-hosted Web API application (the server application) that uses Windows authentication. Windows Auth is enabled in Startup.cs/Configurati...
(1) odpowiedzi
2017-11-27 17:11 C# REST API Service access to path denied »
I'm very new to Windows environment, I've struggle a lot making my c# API work on IIS. I only managed to do a GET on my Web API. When I try to do a P...
(2) odpowiedzi
2017-11-27 11:11 ASP.NET Razor Pages won't load Partial View when I return Page() »
I'm trying to load a partial view, with GET, and it's kind of working. I get localhost(somenumbers)/AnkietaGlowna?View=nowy and then this code is work...
(0) odpowiedzi
2017-11-26 19:11 'HttpRequest' does not contain a definition for 'Params' »
I'm using .NET Core 2.0.2 to create an ASP.NET webapp in C#. Everytime I use Request.Url in my controllers, dotnet run outputs an error: error CS...
(3) odpowiedzi
2017-11-26 16:11 Create dynamic slider in Umbraco using asp net razor »
I managed to create a simple slider using slick slider but it just displays a list of images, not a slider, here is what I have done: I linked all...
(1) odpowiedzi
2017-11-26 11:11 Response.Redirect in cshtml (Object reference not set to an instance of an object.) »
So I started leaning web development and I can't seem to get the Response.Redirect("url") working, my code in my _AppStart.cshtml: @{ bool mobil...
(0) odpowiedzi
2017-11-26 01:11 Which advantage does the WebAPI controller give over the MVC controller? »
I am working on an MVC5 site that uses the WebAPI. I have defined a helper class that handles some logging for the incoming request, which can be call...
(1) odpowiedzi
2017-11-25 19:11 Intellisense missing for if, foreach, etc in Razor views Asp.Net Core »
Why isn't if, or foreach in the list? How do you make this work? ...
(0) odpowiedzi
2017-11-24 19:11 Create .NET iFrame to use in ColdFusion website »
I couldn't find anything related to what I'm looking for, so I decided to ask here (please let me know if it's the wrong place to ask question). I ha...
(0) odpowiedzi
2017-11-23 16:11 Update a specific column of a List <T> »
First they forgive me for my English since it is not my native language. I have a method which receives a generic list List<T>. what I want is t...
(3) odpowiedzi
2017-11-23 11:11 Jquery DataTable deletion applies on the first row only »
I have a table with a couple of rows I want to delete all rows that contain 'Rabat' as a city, but nothing happened. However, when I changed the fi...
(1) odpowiedzi