Skip to content

Magenaut

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

ASP.NET

Regex for removing only specific special characters from string

August 27, 2022 by Magenaut

I’d like to write a regex that would remove the special characters on following basis:

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

MVC3 Razor – Expiring pages

August 27, 2022 by Magenaut

I need to expire my content so that when the user hits the browsers navigation(back) button the controller action gets executed. So instead of adding the following code to each and every
action is there a better way to do it.

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

Why do we need a business logic layer?

August 27, 2022 by Magenaut

It keeps all of your business logic localized, and in one place. Future changes will be much easier as a result.

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

System.ServiceModel.CommunicationException: The underlying connection was closed

August 27, 2022 by Magenaut

I am retrieving data from a wcf web service and when data is more than 0.2 million records i get an exception which is as under:

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

Scope of static variables in ASP.NET sites

August 27, 2022 by Magenaut

If running multiple ASP.NET applications in the same application pool, how many instances will I have of a class’ static variable?

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

Server.MapPath to go two folder back from root

August 27, 2022 by Magenaut

Here is how I do it:

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

How convert stream excel file to datatable C#?

August 27, 2022 by Magenaut

I use Epplus to reading xlsx files from stream.

Categories ASP.NET, Q&A Tags asp.net, epplus, excel, xlsx Leave a comment

StackTrace/StackFrame don’t return expected info in a production environment

August 27, 2022 by Magenaut

I use the following method in my ASP.NET web application to receive the stack trace for an exception:

Categories ASP.NET, Q&A Tags asp.net, c#, debugging, stack-trace, visual-studio-debugging Leave a comment

How to ignore some route while using ASP.NET Friendly URLs?

August 27, 2022 by Magenaut

I am using ASP.NET Friendly URLs with success, but I need to ignore route for a particular Foo.aspx page (because this page needs POST data and once re-routed the POST data is not available anymore in Page_Load()!).

Categories ASP.NET, Q&A Tags asp.net, friendly-url, routes Leave a comment

ValidateRequest =”false” for single control

August 27, 2022 by Magenaut

I’m wanting to allow users to enter HTML in only a single TextBox. I understand it’s possible to change ValidateRequest in the page directive to false in order to remove protection.

Categories ASP.NET, Q&A Tags asp.net, validate-request Leave a comment
Older posts
Newer posts
← Previous Page1 … Page650 Page651 Page652 … 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