Skip to content

Magenaut

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

c#

Calling WEB API with basic authentication in C#

August 26, 2022 by Magenaut

I have a working WEB API that I wrote, and I added basic authentication to the API (username is “testing”, password is “123456”). However, when trying to call that API from my web form, I keep getting the “(401) Unauthorized” message. What should I change in the web code to call the API successfully?

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

Object type boxing with a reference type variable

August 26, 2022 by Magenaut

Boxing is when a value type is assigned to an object type. Is it the same when a reference type is assigned to an object?

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

ASP.NET error with Assembly

August 26, 2022 by Magenaut

Hello I am creating an ASP.NET/C# website and I want to use the Ajax Toolkit assembly. I added it to the “References”.

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

Static variables in web applications

August 26, 2022 by Magenaut

Can I use static variables in my web application ? what are the alternatives to static ? When I use static variables in pages and more than one user use the application, it makes conflict data (incorrect data).

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

Create DataContext from Entity Framework connection string?

August 26, 2022 by Magenaut

I’m trying to make this call in my code:

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

Linq expression to filter formcollection

August 26, 2022 by Magenaut

I have a FormCollection and I just want to only iterate through the keys the do not contain the string pricing.

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

List of Input Values which will cause the “A potentially dangerous Request.Form value was detected…” error

August 26, 2022 by Magenaut

I know the < and > characters will cause this error, but what other characters/inputs will cause this error?

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

Get Name of User from Active Directory

August 26, 2022 by Magenaut

I need to show only the name of a user from Active Directory, I am using

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

Sorted dataview to datatable

August 26, 2022 by Magenaut

I have the following method:

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

What OverrideAuthenticationAttribute is for?

August 26, 2022 by Magenaut

I’ve came across a controller method marked with System.Web.Http.OverrideAuthenticationAttribute in my current Web API project and I’m curious what this is for?

Categories ASP.NET, Q&A Tags .net, asp.net, asp.net-web-api, c#, web-services Leave a comment
Older posts
Newer posts
← Previous Page1 … Page331 Page332 Page333 … 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