Skip to content

Magenaut

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

asp.net

CryptographicException: Padding is invalid and cannot be removed and Validation of viewstate MAC failed

September 3, 2022 by Magenaut

Monitoring my global exception logs this error seems to be impossible to remove no matter what I do, I thought I finally got rid of it but it’s back again. You can see a strack trace of the error on a similar post here.

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

ASP.NET Web Site or ASP.NET Web Application?

September 3, 2022 by Magenaut

When I start a new ASP.NET project in Visual Studio, I can create an ASP.NET Web Application or I can create an ASP.NET Web Site.

Categories ASP.NET, Q&A Tags .net, asp.net, projects-and-solutions, visual-studio Leave a comment

Are static methods thread safe

September 3, 2022 by Magenaut

I have a static timer class which will be called by ANY webpage to calculate how long each page has taken to be constructed.

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

Read connection string from web.config

September 3, 2022 by Magenaut

How can I read a connection string from a web.config file into a public class contained within a class library?

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

Store pictures as files or in the database like MSSQL for a web app?

September 3, 2022 by Magenaut

I’m building an ASP .NET web solution that will include a lot of pictures and hopefully a fair amount of traffic. I do really want to achieve performance.

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

ASP.NET MVC and IE caching – manipulating response headers ineffective

September 3, 2022 by Magenaut

In the action method, headers are set to instruct browsers how to cache the response. They are:

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

Get the correct week number of a given date

September 3, 2022 by Magenaut

I have Googled a lot and found a lot of solutions, but none of them give me the correct week number for the 2012-12-31. Even the example on MSDN (link) fails.

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

Serializing a list to JSON

September 3, 2022 by Magenaut

I have an object model that looks like this:

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

Reach control from another page. ASP.Net

September 3, 2022 by Magenaut

Well, this is the situation…
I have a element (<h2 id="test"></h2>) in Page1.aspx, and I want to change it from Page2.aspx (administration zone for the user…), kind of…

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

How can I strip HTML tags from a string in ASP.NET?

September 3, 2022 by Magenaut

Using ASP.NET, how can I strip the HTML tags from a given string reliably (i.e. not using regex)? I am looking for something like PHP’s strip_tags.

Categories ASP.NET, Q&A Tags asp.net, c#, html, regex, string Leave a comment
Older posts
Newer posts
← Previous Page1 … Page127 Page128 Page129 … Page944 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