C# Corner
Tech
News
Videos
Forums
Trainings
Books
Live
More
Interviews
Events
Jobs
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Tags
No tag found
Content Filter
Articles
Videos
Blogs
Resources
News
Forums
Interviews
Complexity Level
Beginner
Intermediate
Advanced
Refine by Author
[Clear]
Sardar Mudassar Ali Khan (5)
Farhan Ahmed(4)
Sourav Kayal(4)
Vijay Prativadi(3)
Jignesh Trivedi(3)
Mahender Pal(2)
Satyaprakash Samantaray(2)
Debasis Saha(2)
Mukesh Kumar(2)
Pramod Thakur(2)
Abhimanyu K Vatsa(2)
Allam Purushotham(2)
Tuhin Paul(2)
Vishal Babuks(2)
Vishal Gami(1)
Jaimin Shethiya(1)
Jitendra Mesavaniya(1)
Naimish Makwana(1)
Rajashekar Syereddy(1)
Shivam Payasi(1)
Yogeshkumar Hadiya(1)
Jin Necesario(1)
Veerendra Annigere(1)
Sai Kumar Koona(1)
Mahesh Verma(1)
Zain Ul Hassan (1)
Usama Shahid(1)
Dhruvin Shah(1)
Madhanmohan Devarajan(1)
Santosh Kumar Adidawarpu(1)
Debendra Dash(1)
Akshay Phadke(1)
Sateesh Arveti(1)
Amit Mishra(1)
Mannan (1)
Ehsan Sajjad(1)
Shakti Saxena(1)
Priyaranjan K S(1)
Srinivas Vadepally(1)
Akhil Mittal(1)
Vivek Tripathi(1)
Rangesh Sripathi(1)
Pranay Rana(1)
Tom Mohan(1)
Manish Kumar Choudhary(1)
Abhishek Kumar(1)
Akshay Patel(1)
Vithal Wadje(1)
Rahul Bansal(1)
Mudita Rathore(1)
Kush Muchaal(1)
Amit Patel(1)
Akshay Teotia(1)
Dipal Choksi(1)
Vijai Anand Ramalingam(1)
Gohil Jayendrasinh(1)
C# Curator(1)
Sagar Rane(1)
Ajay Narkhedkar(1)
Rijwan Ansari(1)
Rajesh Gami(1)
Sandhiya Priya(1)
Vinoth Xavier(1)
Aarav Patel(1)
Sangeetha S(1)
Praveen Sreeram(1)
Ziggy Rafiq(1)
Abhishek Chadha(1)
Alkesh Bijarniya(1)
Mithilesh Tata(1)
Mariusz Postol(1)
Keyur (1)
Ajay Kumar(1)
Vishal Yelve(1)
Sachin Mishra(1)
Tural Suleymani(1)
Munib Butt(1)
Resources
No resource found
Structural vs Attribute Directives in Angular — A Deep Dive for Practical Developers
Nov 25, 2025.
Master Angular directives! This deep dive explains structural vs. attribute directives with real examples, use-cases, and best practices for practical developers.
Fixing -“This attribute is mapped more..”
Oct 07, 2025.
Troubleshooting the frustrating "This attribute is mapped more than once" error when importing contacts into Dynamics 365 CE? This guide walks you through a systematic approach to identify the root cause, including checking for duplicate fields, display names, plugin tracing, and network logs. Learn how a specific field can trigger this error and how to resolve it by removing the problematic field from your import file. Save time and frustration with this practical solution!
Response Cache Attribute in .NET Core 8: Usage, and Examples
Sep 09, 2024.
This guide covers its usage, configuration, and examples, explaining how to implement response caching in ASP.NET Core for faster load times and reduced server overhead in your web applications.
Experimental Attribute in .NET & C#
Apr 15, 2024.
The Experimental attribute is a new C# 12 feature that allows you to add the Experimental attribute to your types, methods, or assemblies to indicate that they are experimental features. When someone tries to use the method or the type, the compiler will issue an error.
The Experimental Attribute in .NET 8 and C# 12
Apr 03, 2024.
In this article, we will discuss Experimental Attributes in .NET 8 and C# 12. The ExperimentalAttribute in C# .NET 8 marks APIs as experimental, signaling potential changes. It's crucial for libraries or APIs to foster controlled innovation.
Autonumber Attribute Generation: Programmatically or Non-Programmatically
Mar 08, 2024.
In this article, we will discover techniques for auto-incrementing identifiers, managing data, and implementing automation, potentially utilizing frameworks like Entity Framework.
Creating Custom Attribute Directives in Angular
Mar 07, 2024.
Angular is a powerful framework for building dynamic web applications with JavaScript, HTML, and CSS. One of its key features is the ability to create custom directives, which allow developers to extend HTML with new attributes and behaviors. The process of creating a custom attribute directive in Angular.
Including And Excluding Properties from Model Binding Using the Bind Attribute
Jul 06, 2023.
Using the 'Bind' feature in ASP.NET MVC, you can include and exclude properties from model binding. You can specify which attributes should be included or excluded during model binding using the 'Bind' feature. To include particular characteristics during model binding, utilize the 'Include' property of the 'Bind' attribute. Here is one instance.
Understanding The "disabled" Attribute in HTML
Jun 05, 2023.
In this article, I'm going to explain how we can remove the disabled attribute from any HTML element
Custom Attribute Directive In Angular
Jul 05, 2021.
In this article, we will learn about custom attributes directives in Angular. In this article, we create some custom attributes directive and use in our components.
CSS Attribute Selectors
Jul 22, 2020.
In this article, you'll learn about the CSS attribute selectors. If you need a deep-dive introduction about it which tackles from the simple to sophisticated selector, this article is for you.
How To Override Attribute Class To Do Custom Authorization In .NET Core
Dec 22, 2019.
In this article, Discover how to customize authorization behaviors using attribute classes, providing finer control over access to resources based on specific criteria such as user roles, permissions, or other contextual information.
Custom Validation Attribute In ASP.NET MVC
Jun 08, 2019.
In this article, you will learn how to use custom validation attribute in ASP.NET MVC.
ValidateInput Attribute In ASP.NET MVC
May 31, 2019.
In this article, you will learn about the ValidateInput attribute in ASP.NET MVC.
Bind Attribute In ASP.NET MVC
May 29, 2019.
In this article, you will learn about the Bind Attributes in ASP.NET MVC.
ChildActionOnly Attribute In ASP.NET MVC
May 12, 2019.
This article will explain to you the ChildActionOnly attribute in ASP.NET MVC.
Change HTML Attribute Of DOM Element Using Custom Attribute Directives In Angular 6
Oct 16, 2018.
In this session, I will show you how we can change the appearance such as text color, background color and font size of a body of an HTML element using custom attribute directive.
Introduction To Custom Attribute Directives In Angular 6
Oct 16, 2018.
This page will walk through Angular 2 custom attribute directive example. Angular provides three types of directive: component directive, attribute directive and structural directive. The component directive is used to create an HTML template.
Query Intersect Entity And Its Attribute - Sample Code
Aug 31, 2018.
When we setup system N:N relationship between two entities an intersect entity is created internally, which is not accessible directly. Let’s say we have N:N relationship between case and workorder entity.
Understanding Produces And Consumes Attribute In MVC 6
Jul 27, 2018.
Produces and Consumes Attributes are newly introduced in MVC 6 (ASP.NET Core) to control the content negotiation.
Custom Attribute Directive In Angular
Jun 20, 2018.
In this article, I am going to explain that how can we create directives as per our requirement. We also study that how can we format a credit card number using the custom directive in this article.
Conventional Routing VS Attribute Routing
May 30, 2018.
Learn about ASP.NET MVC routing, including attribute routing, route table management, default and custom routes, route constraints, order properties, and route names. Understand the purpose of IgnoreRoute, applying constraints, using RoutePrefix, setting default actions, and managing route order.
How To Define Attribute Routing
May 09, 2018.
Look at this code, we’ve currently only 1 custom route if we’re working with larger application this file will grow with lots of custom routes and over the period of time it will become a huge problem for us to handle all the routes. As we can see, each route consists of 3-4 lines of code, it is so much time consuming and hard to keep in mind for logic building.
Create Custom People Search Page With Phone Number Attribute In SharePoint Online
Aug 28, 2017.
We have a requirement from one of our clients. They want to modify the “peopleresults.aspx” page which is the default People Search Page provided by SharePoint OOTB.
JavaScript For Querying An Entity And Updating Attribute Values In Form
Jun 20, 2017.
In this article, you will learn about JavaScript for querying an Entity and updating attribute values in form.
Angular 2 Custom Attribute To Secure The HTTP Requests And To Show/Hide Spinner During The Service Call
Apr 19, 2017.
Angular 2 Custom Attribute To Secure The HTTP Requests And To Show/Hide Spinner During The Service Call.
Creating Your Own Validation Attribute In MVC And Web API 2.0
Apr 11, 2017.
In this article, we will learn how to create your own validation attribute in MVC and WebAPI 2.0.
AngularJS 2.0 From The Beginning - Attribute Directives - Day Six
Jan 07, 2017.
In this article, you will learn about the attribute directives in AngularJS 2.0.
Practical Approach To ASP.NET Web Services - Part Four - Web Method Attribute Properties
Dec 06, 2016.
In this article, you will learn about Web Method Attribute Properties in ASP.NET Web Services.
Overview Of ThreadStatic Attribute In C#
Jul 23, 2016.
In this article, you will learn about the overview of ThreadStatic attribute in C#.
Properties Of WebMethod Attribute In Web Service - Part Four
Jun 14, 2016.
In this article, you will learn about properties of WebMethod attribute in a Web Service.
Route Attribute In ASP.NET MVC
Apr 05, 2016.
In this article I explain the basic usage of route attribute and how to define route attribute on action and controller.
Check If Username/Email Already Registered Using Remote Validation Attribute in ASP.NET MVC
Dec 26, 2015.
In this article you will learn how to check if Username/Email already registered using Remote Validation Attribute in ASP.NET MVC.
Exception Handing Using HandleError Attribute In ASP.NET MVC
Dec 09, 2015.
In this article you will learn about Exception Handing using HandleError Attribute in ASP.NET MVC.
Debugger Display Attribute In Visual Studio
Nov 27, 2015.
In this article you will learn Debugger Display Attribute in Visual Studio.
Choose Attribute Routing Instead Of Convention Based Routing In ASP.NET MVC
Nov 23, 2015.
In this article, I will try to demonstrate you about when to choose Convention Based Routing and Attribute Routing.
Sort JSON Object Array Based On A Key Attribute In JavaScript
Oct 19, 2015.
In this article you will learn about sorting JSON Object Array based on a Key Attribute in JavaScript.
Working With Attribute Routing In Web API 2
Oct 06, 2015.
In this article you will learn why we need Attribute Routing and how to work with Attribute Routing in ASP.NET Web API 2.
RESTful Day #4: Custom URL Re-Writing/Routing Using Attribute Routes in MVC 4 Web APIs
Jun 01, 2015.
In Day #4 of your RESTful journey, delve into the power of custom URL re-writing and routing using attribute routes in MVC 4 Web APIs. Unleash the flexibility of tailored endpoints, optimizing your API architecture for seamless communication and enhanced user experience.
Data Annotation Attribute On Code First Approach
May 16, 2015.
This article explains the Data Annotation Attribute of the Code First Approach.
Index Attribute Using Entity Framework
May 12, 2015.
This article shows how to access a SQL Server database with the Entity Framework Code First approach and how to create an index.
KnownType Attribute in WCF
Mar 29, 2015.
This article explains how to use a known type in WCF and provides a basic understanding of WCF and DataContracts as the prerequisites.
Complex Custom Validation Attribute Specific to Entity
Mar 07, 2015.
Complex custom validation attributes tailored for entities in Entity Framework enable validation logic beyond standard rules. These attributes empower precise data validation, ensuring compliance with specific business requirements within your application.
ASP.NET MVC : Handle Session Expire Using Custom Attribute
Feb 24, 2015.
In this article you will learn how to handle a Session Expire using a Custom Attribute in ASP.NET MVC.
Generate Dropdownlist With Custom Attribute Column Using Kendo UI and jQuery
Jan 13, 2015.
In this article you will learn how to Generate Dropdownlist with Custom Attribute Column using Kendo UI and Jquery.
Create a Custom Remote Attribute in MVC
Jan 02, 2015.
This article explains how to create a custom remote attribute in MVC. We use the procedure in this article to create a custom attribute in MVC.
KnownType Attribute in WCF: Part 6
Dec 04, 2014.
In this article, we learn what the KnownType attribute is in WCF and how to implement it.
Type Attribute in WCF
Nov 17, 2014.
In this article you will learn about WCF Services and various contracts with the framework.
Remote Attribute Sample in MVC: Day 29
Oct 30, 2014.
In this article we will see how to apply a remote attribute in MVC.
Web Service Method Attribute Properties
Oct 18, 2014.
Web Service Method Attribute Properties define behavior and metadata for methods in web services. They encompass features like message formatting, parameter handling, and service invocation specifications, crucial for interoperability and service functionality within distributed systems.
Obsolete Attribute in C#
Sep 19, 2014.
In this article we learn what the Obsolete Attribute is and why to use it.
Index Attribute With Entity Framework 6.1
Aug 07, 2014.
In this article you will learn about the Index attribute with Entity Framework 6.1.
ValidateInput Attribute to Prevent CSS Attack in MVC
Apr 17, 2014.
This article explains how to prevent Cross Site Scripting (CSS) attacks using the validateInput attribute.
Getting Unrecognized Attribute Target Framework Exception
Apr 07, 2014.
In this article I will demonstrate why you get the Unrecognized attribute target Framework exception.
Routing Constrains With Attribute Routing in MVC 5.0
Mar 13, 2014.
In this article, I will demonstrate how to use Routing Constrains with Attribute Routing in MVC.
Web API With AJAX: Understand FormBody and FormUri Attribute In Web API
Dec 09, 2013.
This article exlains the FormBody and FormUri attributes and how to use them with an action parameter to consume data at the client end.
Web API With AJAX: Understand AcceptVerb Attribute in Web API
Dec 09, 2013.
This article explains the AcceptVerb attribute of the Web API. AcceptVerb is one attribute of the Web API actions. We can use it to allow a specific HTTP verb in a Web API action.
Web API With AJAX: Understand Method Name and Attribute in Web API
Dec 08, 2013.
This article explains action names and various attributes of them as well as the behavior actions corresonding to various attributes.
Create REST Services With Attribute Routing in Web API2
Nov 12, 2013.
This article explains the Representational State Transfer (REST) services with the attribute routing.
How to Check JSON Validation and Fetching the Attribute Value
Feb 20, 2013.
This explains how to check JSON Validation and fetch the attribute value.
Using Title Attribute in ASP.NET
Nov 10, 2012.
In this article we will discuss different techniques of applying Title in ASP.Net page.
Add Attribute to XML Using LINQ to XML
Oct 15, 2012.
Today, in this article let’s play around with one of the interesting and most useful concepts in LINQ to XML. add a new XAttribute to XML with help of a LINQ query.
Remote Attribute in MVC
Jul 12, 2012.
In this article I am try to explain how to use the Remote Attribute in MVC applications.
Creating Custom Validation Attribute For Data Annotation
Jun 27, 2012.
In .net 4.0, namespace System.ComponentModel.DataAnnotations allow you to create new attribute and with the help of this you can validate the data as per your requirement.
Handle Control's Attribute Using jQuery
Apr 28, 2012.
This article shows how to handle or target a control's attribute using jQuery.
WebMethods Attribute in ASP.NET Web Service
Jan 29, 2012.
The WebMethod attribute can make development of XML Web Services easier.
Using the Confirm Attribute in MVC 3 Effectively
Nov 10, 2011.
This article mainly focuses on how to make sure that the properties within the particular class are matched and operations are performed well.
Placeholder Attribute in HTML5
Oct 07, 2011.
In this article we will take a look at the placeholder attribute in html5 for input elements which provides the very useful, and frequently used functionality of displaying informative text, within the input element, which gets hidden when the user clicks on it.
How to resolve the error “Cannot change hidden attribute for this field”
Feb 17, 2011.
In this article we will be seeing how to resolve the following error “Cannot change hidden attribute for this field”.
How to Read / Search Node or Attribute in XML file
Dec 21, 2010.
In this article you will learn how to Read / Search Node or Attribute in XML file.
What is the AutoEventWireup attribute in ASP.NET
Sep 07, 2009.
In this article, I will explain about AutoEventWireup attribute in ASP.NET
Teach Claude Your Auth Rules - Stop Reviewing AI Code for Missing [Authorize] Attributes
Jul 25, 2026.
Teach Claude Code your auth rules via CLAUDE.md to prevent security gaps in AI-generated code. Streamline reviews & ensure consistency.
JWT Session 6: Protecting ASP.NET Core Web APIs Using the [Authorize] Attribute
Jul 19, 2026.
Secure your ASP.NET Core Web APIs with the [Authorize] attribute. Learn to protect endpoints, differentiate public/private access, and prevent unauthorized data access.
Designing Attribute-Based Contextual Authorization in ASP.NET Core Microservices Using JWT Claims
Feb 04, 2026.
Implement attribute-based authorization in ASP.NET Core microservices using JWT claims for scalable, secure context validation. Centralize rules and keep controllers clean.
Securing ASP.NET Core Endpoints Using JWT, Claims, and Attribute-Based Policies
Feb 03, 2026.
Secure ASP.NET Core endpoints with JWT, claims, and attribute-based policies. Restrict access based on user roles and extract user context for microservices.
Improve Debugging in .NET Using the DebuggerDisplay Attribute
Dec 02, 2025.
Simplify .NET debugging with the DebuggerDisplay attribute! Customize object views in the debugger for faster problem-solving. Learn how to use it effectively and boost productivity.
Designing an Attribute-Value-Store (AVS) Engine inside SQL for Dynamic Fields
Nov 20, 2025.
Build a robust Attribute-Value-Store (AVS) engine within SQL for dynamic fields. Covers data models, indexing, validation, audit, and scaling for modern apps.
Dynamically Setting HTML Attributes Using C# in ASP.NET
Nov 06, 2025.
Learn how to dynamically set HTML attributes in ASP.NET using C#. Modify control behavior and appearance based on server-side logic for enhanced interactivity and accessibility.
Smart Dependency Injection in .NET with Custom Attributes
Sep 26, 2025.
Simplify .NET dependency injection with custom attributes! Automate service registration by defining injection scopes directly on interfaces. This approach reduces boilerplate code, enhances maintainability, and promotes a cleaner, more scalable architecture. Learn how to scan assemblies dynamically and streamline your DI setup for efficient .NET development.
What is the HTML script async Attribute?
Sep 05, 2025.
Unlock faster website loading speeds with the HTML async attribute! This guide explains how async enables asynchronous JavaScript loading, preventing scripts from blocking HTML parsing. Learn when to use async for independent scripts like analytics and ads, and when to avoid it for scripts with dependencies. Discover the difference between async and defer to optimize your website's performance and user experience. Improve your website's speed today!
WebMethod and ScriptMethod Attributes in .NET Webfroms
Mar 15, 2025.
?In ASP.NET Web Forms, client-side scripts like JavaScript and jQuery can call server-side methods using the [WebMethod] and [ScriptMethod] attributes. These methods must be declared as static (C#) or Shared (VB.NET). This approach enables AJAX functionality, allowing asynchronous data exchange without full page reloads.
Azure Bicep Understanding Export and Import Attributes for Reusability
Feb 13, 2025.
This article covers how to efficiently pass values between modules, reuse resources, and optimize your Infrastructure as Code (IaC) deployments.
Using Attributes and Metadata in C# 12
Oct 20, 2024.
Ziggy Rafiq demonstrates how to use attributes and metadata in C# 12 including improvements in parameter types, reflection capabilities, and best practices for maintaining self-documenting code.
Unveiling HTML's Secret Sauce: The Power of Attributes
Jun 08, 2024.
Explore essential HTML attributes like accept, alt, autocomplete, contenteditable, download, hidden, srcset, readonly, loading, and poster, crucial for enhancing user experiences, accessibility, and performance in web development. Learn their functionalities and practical applications with examples.
How to Conditionally Apply Class Attributes in ReactJS
May 24, 2024.
In this article, we will learn how to conditionally apply class attributes in ReactJS using the classnames utility. This guide demonstrates how to dynamically assign CSS classes based on component state or props, enhancing the flexibility and readability of your React components.
What Are Data Attributes in HTML, and How Are They Used?
Mar 28, 2024.
Know the data attributes in HTML. Data attributes are commonly used in conjunction with JavaScript and CSS to enhance the functionality and styling of web pages.
Creating Contact Record in Dynamics 365 with PowerShell Attributes
Mar 20, 2024.
Learn to efficiently create Contact records in Dynamics 365 using PowerShell, covering all attribute types. Utilize Microsoft.Xrm.Data.PowerShell module for seamless CRMOnline connection and managing various data types like lookup, option set, money, boolean, and date.
Creating Contact Record in D365 with PowerShell Script & Image Attribute
Mar 15, 2024.
Learn to automate Dynamics 365 contact record creation via PowerShell. This script includes adding image attributes, streamlining CRM data management. Utilize Microsoft's Xrm.Data.PowerShell module for efficient and seamless integration, enhancing your CRM automation capabilities.
Boosting Web Page Performance with the Defer Attribute
Mar 06, 2024.
JavaScript plays a vital role in enhancing the interactivity and functionality of web pages. However, the way scripts are loaded can significantly impact the user experience and overall performance of a website. In this article, we'll delve into the defer attribute in JavaScript.
Fallthrough Attributes in Vue.js
Feb 29, 2024.
Vue.js provides a powerful feature known as fallthrough attributes, which allows attributes not declared as props to seamlessly pass through to the root element in a component. This feature enhances code readability and simplifies the parent component by avoiding the need to declare every attribute as a prop.
External Data - Attributes - Profiling Data Access
Jan 06, 2024.
The external data is recognized as the data we must pull or push from outside of a boundary of the process hosting the computer program. A very important kind of external data is streaming data. Usually, this data kind is managed using file and stream concepts. To save/read working data using streams, we need serialization/deserialization operations between streaming and object-oriented data.
How to Use Custom Attributes in C#
Oct 10, 2023.
Custom attributes in C# allow developers to annotate code elements with metadata for improved runtime behavior and information retrieval. This practical guide explores the creation, implementation, and usage of custom attributes in C#. Learn how to define custom attributes, apply them to code entities, and leverage reflection to access attribute information dynamically. Discover the versatility of custom attributes for enhancing code readability, facilitating debugging, and enabling a more efficient software development process. Gain insights into best practices and real-world scenarios for effectively utilizing custom attributes within your C# projects.
Creating Custom Metadata in C# Attributes
Sep 14, 2023.
C# attributes are metadata markers, enhancing code with additional information. They can be applied to classes, methods, and more. Custom attributes empower developers to create metadata tailored to their needs, accessed via reflection. This article explores the world of custom attributes in C#, including their creation, application, and benefits.
Data Validation with Annotations, Custom Attributes, and Fluent Validation
Aug 30, 2023.
Data Annotations are attributes provided by the System.ComponentModel.DataAnnotations namespace in C#. They allow you to declaratively specify validation rules and constraints directly within your model classes.
ASP.NET Core Routing Attributes
Jul 30, 2023.
Routing in ASP.NET Core is the process of mapping incoming requests to application logic that resides in controllers and methods. In this article, we will cover ASP.NET Core Routing Attributes.
Understanding HTML Tags and Attributes
Jun 22, 2023.
Understanding HTML Tags and Attributes, HTML allows web developers to structure content, add images and videos, create links, and more. One of the key features of HTML is the use of tags. Tags are used to identify different elements of a web page and tell the browser how to display them. In this article, we will look at the different types of tags in HTML and provide examples of how they are used.
Handling Attributes Dropdowns in Cypress
Jun 19, 2023.
Attributes In Practice - Building A Payment Terminal
Feb 02, 2023.
In this article, you will learn about Attributes In Practice.
TestNG Basics And TestNG Attributes
Nov 11, 2022.
This article explains the what is testNG,its uses and concepts used in testNG.
Creating Custom Attributes In .NET
Aug 08, 2022.
In this article, you will learn how to create custom attributes in .NET.