Skip to content

Magenaut

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

asp.net-mvc

Why does asp.net running on .net 4.8 add a http header x-aspnet-version: 4.0.30319

August 24, 2022 by Magenaut

I do have .net 4.8 installed. When i create a new simple asp.net mvc application using visual studio 2019 and start the website using the builtin IIS-Express, it will add the following header:

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, iis Leave a comment

ASP.NET MVC Int Array parameter with empty array defaults to {0}

August 24, 2022 by Magenaut

I have a controller action like:

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-mvc-2 Leave a comment

Static compression in IIS does not work for htm, js files

August 24, 2022 by Magenaut

I’m trying to configure IIS 7.5 to compress static htm and js files. Does anyone know why it does not work for me? Here is my web.config for the web site:

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, compression, iis-7.5 Leave a comment

How to use nameof to get the fully qualified name of a property in a class in C# Attributes?

August 24, 2022 by Magenaut

I am using Foolproof library in ASP.Net MVC project and in some cases I need to check a property within a member class of my model using attribues .

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

List model razor view

August 24, 2022 by Magenaut

I have an application asp.net mvc . in the controller i have this:

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

Adding DataAnnotations to auto-generated DBML Class? MVC 2.0 ASP.NET

August 24, 2022 by Magenaut

i’m worried about doing this since my changes will be overwritten when the dbml file is auto generated again (as they often are).

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

Attaching validation to EF objects used in MVC controllers/views?

August 24, 2022 by Magenaut

We’re throwing together a quick project (CRUD forms) and decided to skip view models and use EF entities directly in controllers and views. Since I’m not used to this approach, I’m confused about handling validation.

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

Show image stored in App_Data

August 24, 2022 by Magenaut

I have 2 image files in my App_Data directory and I want to show them in my view like this:

Categories ASP.NET, Q&A Tags app-data, asp.net, asp.net-mvc, asp.net-mvc-4, image Leave a comment

Convert excel workbook to byte[]

August 24, 2022 by Magenaut

I have an “excel library” workbook and want to convert it to a byte[] so I could return the data with the File method exist in asp.net mvc controller.
There are “Save” and “SaveToStream” method, but no convert to byte[].

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

asp.net mvc 1.0 “project type is not supported” on Visual Studio 2008

August 24, 2022 by Magenaut

I’ve installed (in this order):
64bit Windows7,
64bit Visual Studio 2008,
Microsoft Free Web Platform Installer (WEB PI)
– installed iis7
– bunch of samples
– …
asp.net mvc 1.0
Visual Studio 2008 sp1

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, visual-studio-2008 Leave a comment
Older posts
Newer posts
← Previous Page1 … Page123 Page124 Page125 … Page131 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