Skip to content

Magenaut

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

ASP.NET

When to enable/disable Viewstate

August 25, 2022 by Magenaut

I generaly disable viewstate for my ASP.net controls unless I explicitly know I am going to require view state for them. I have found that this can significantly reduce the page size of the HTML generated.

Categories ASP.NET, Q&A Tags asp.net, web-user-controls Leave a comment

Create pdf file in Asp.net

August 25, 2022 by Magenaut

string s=”

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

How reliable is the MaxLength property of the TextBox-Control?

August 25, 2022 by Magenaut

The TextBox control offers a MaxLength property, which allows the insertable text into that TextBox be clientside limited to the specified amount of chars.

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

WebMethod return values in JSON format

August 25, 2022 by Magenaut

How to return values from Webmethod to the client in JSON format?

Categories ASP.NET, Q&A Tags ajax, asp.net, javascript, json Leave a comment

CreateUserIdenityAsync returns “UserId not found” exception for custom IdentityUser

August 25, 2022 by Magenaut

I’m following along the bitoftech tutorial about creating Identity and role based claims with JWT. My application user is a custom User table with int PK.

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

ASP.net TextBox Regular Expression Needed to include 2 Decimal Places

August 25, 2022 by Magenaut

Good Evening All,

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

how can we prevent .exe type file upload in a website?

August 25, 2022 by Magenaut

Suppose we have a example.exe file.
we first put that file in a new folder
and then zip that folder with any zipping software,
Can we prevent that zipped folder upload in a website?
how can we do that?

Categories ASP.NET, Q&A Tags asp.net, asp.net-ajax, javascript Leave a comment

Customize elmah.axd output fields

August 25, 2022 by Magenaut

ELMAH shows host, code, type, error, user, date and time by default on its error log web page. Is there any way to configure it and show other fields like IP or REFERER?

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

Using ExecuteURL as 404 handler in web.config will bypass URL Rewrite (ie.. outboundRules) while using other responseModes won’t

August 25, 2022 by Magenaut

I have the following rule in web.config designed to identify and rewrite outbound session cookies with both the secure and httpOnly flags:

Categories ASP.NET, Q&A Tags asp.net, iis, session-cookies, url-rewriting, web-config Leave a comment

Time out period not elapsed, but still timing out (see code)?

August 25, 2022 by Magenaut

OK I keep getting this error after about 3-4 minutes of churning:

Categories ASP.NET, Q&A Tags asp.net, sql, timeout Leave a comment
Older posts
Newer posts
← Previous Page1 … Page752 Page753 Page754 … 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