Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

c#

ASP.NET Web API 2 – StreamContent is extremely slow

August 31, 2022 by Magenaut

We’ve ported a project from WCF to Web API (SelfHost) and during the process we noticed a huge slowdown when serving out a web application. Now 40-50 seconds vs 3 seconds previously.

Categories ASP.NET, Q&A Tags asp.net, asp.net-web-api, c# Leave a comment

Method to Find GridView Column Index by Name

August 31, 2022 by Magenaut

I’m trying to write a small method to loop through and find a GridView Column by its Index, since it can change position based on what might be visible.

Categories ASP.NET, Q&A Tags asp.net, c# Leave a comment

ASP.NET 5 (vNext) – Getting a Configuration Setting

August 31, 2022 by Magenaut

I’m writing a basic app to learn ASP.NET 5. One area I find very confusing is configuration. Prior to ASP.NET 5, I could do the following:

Categories ASP.NET, Q&A Tags .net, .net-core, asp.net, asp.net-core, c# Leave a comment

How do I clear a System.Runtime.Caching.MemoryCache

August 31, 2022 by Magenaut

I use a System.Runtime.Caching.MemoryCache to hold items which never expire. However, at times I need the ability to clear the entire cache. How do I do that?

Categories ASP.NET, Q&A Tags .net-4.0, asp.net, c#, caching Leave a comment

How to format cells in excel sheet programmatically?

August 31, 2022 by Magenaut

We have an asp.net c# program that reads a sheet from an Excel file and writes it out in a new sheet (also adding one column if data come from a Sql Server table).

Categories ASP.NET, Q&A Tags asp.net, c#, excel Leave a comment

“context.Resource as AuthorizationFilterContext” returning null in ASP.NET Core 3.0

August 31, 2022 by Magenaut

I am trying to implement a custom authorization requirement following a tutorial. It seems like
context.Resource no longer contains AuthorizationFilterContext and as a result:

Categories ASP.NET, Q&A Tags asp.net, c# Leave a comment

Details of Assembly version

August 31, 2022 by Magenaut

we will find Assembly version from Assembly.cs in every library.

Categories ASP.NET, Q&A Tags .net, asp.net, assemblies, assemblyinfo, c# Leave a comment

ASP.NET Custom Control – Unknown server tag

August 31, 2022 by Magenaut

I’ve made a custom control that inherits from a Literal control. When I try and use my control on a page a parsing error is thrown. I’ve added this to my web.config

Categories ASP.NET, Q&A Tags asp.net, c#, custom-controls Leave a comment

How to load different RESX files based on some parameter

August 31, 2022 by Magenaut

I have an ASP.NET3.5 (C#) ASPX page that is internationalized in 10 different languages.

Categories ASP.NET, Q&A Tags .net, asp.net, c#, internationalization, resx Leave a comment

Opening a PDF in browser instead of downloading it

August 31, 2022 by Magenaut

I’m using iTextSharp to print a panel into PDF on button click. After clicking on the button, the PDF is downloading to the client’s computer. Instead of this I need the PDF to be opened in a browser instead of downloading. From the browser the user will be able to download the PDF to his PC.

Categories ASP.NET, Q&A Tags asp.net, c#, pdf-generation Leave a comment
Older posts
Newer posts
← Previous Page1 … Page183 Page184 Page185 … Page451 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress