C# Corner

Resources  
  • Creating and Using Custom Attributes in C#Feb 27, 2000. Attributes are classes that allow you to add additional information to elements of your class structure.
  • Ouch! There is a Hook in My C#May 15, 2001. As an extension to the J++ design practice, C# has a syntactic construct, called Attributes, which let you drop hooks to Windows API or modify the runtime semantics, like threading synchronization behavior. The C# has legalized the hooking practice by calling them Attributes, and including them in ECMA C# specification.
  • Using Attributes in C#Sep 14, 2001. This article shows how to create custom attribute classes, use them in code, and query them.
  • Mapping Objects to Relational DatabasesNov 01, 2001. The application generates C# Class files for each table in a relational database. I have used Mysql and ODBC.NET for this project. The application only supports MySQL right now.
  • Application Data Utility ClassApr 24, 2002. Attached is a ZIP file containing the source-code and compiled DLL of the "Application Data Utility Class".
  • Case Study: Demo Networking Financial System May 23, 2002. In this tutorial I will discuss some of the design and development issues that one might consider when using .NET framework for developing Network affiliated applications.
  • Robotics Game Using .NET LanguagesMay 28, 2002. It is often not easy to get to know new technologies like .NET if you don’t get introduced to in a work environment.
  • C# Style-SheetMay 31, 2002. This article contains a C# style-sheet for the GNU a2ps print utility. The style-sheet keywords, comments, preprocessor directives, and [] style attributes are pretty-printed in the typical a2ps fonts.
  • Using Active DirectoryJul 31, 2002. This sample code can sense current context in Active Directory, checks for the existence of attributes, provides a list of all the attributes in Active Directory and can add a user to Active Directory.
  • Calling Procedural COBOL from C#Sep 05, 2002. In a previous article we discussed how to call procedural based COBOL programs from VB.NET.
  • Attributed Programming in .NET using C#Oct 04, 2002. In this article, I illustrate the power of attributed programming by examples that show a modular approach to issues that can crosscut many classes. Attributes will provide exciting software development abstractions in the future.
  • Invoking Unmanaged DLL Functions from Compact Framework for Pocket PC Jan 04, 2003. In this example we will use the Compact Framework to create a program containing a launch pad for the Pocket PC.
  • An XML-RPC Package for .NETFeb 06, 2003. This package provides a simple XML-RPC client and server for C# applications. It's pure C#, using .Net for networking and XML functionality.
  • Using C# and COM Interoperability to Extract from a UML tool into a Microsoft Word DocumentFeb 18, 2003. This article allows you to read the classes contained inside of WithClass 2000 into a Word Document using COM Interoperability for Word and COM Interoperability for WithClass and presents your classes in a kind of report.
  • Querying COM+ through Web ServicesMar 12, 2003. The most COM+ common administrative tasks (creating a COM+ application, installing/deleting a component, setting a component attribute) can be accomplished manually with the Component Services administrative tool from Management Console.
  • Coloring the Console in C# Oct 25, 2004. When working with console applications in C#, you always see a black and white screen. What if we want to change the background color of the console? We can change the foreground and background color of our console application by using win32 API SetConsoleTextAttribute().
  • Moving C Structures into .NET with Custom MarshalingDec 17, 2004. Microsoft provides several attributes for marshaling C to C#. In our example we will take the case where we have hundreds of structures and only a few API calls, so we only need to generate the marshaled code for the structures.
  • Performance Improvement in ASP.NET Using CachingFeb 01, 2005. ASP.NET provides caching at several levels for you to leverage and improve the responsiveness of your application by storing the page output or application data across HTTP requests and reuse it. This allows the web server to take advantage of processing the request without recreating the information and thus saving time and resources.
  • Posting to another .aspx using ASP.NET Mar 19, 2005. ASP.NET wont allow to post back to another aspx page. It will post back to itself. If you specify action attribute it will ignore it. If you omit the method attribute, it will be set to method="post" by default.
  • Comparing Conditional Attributes in C/C++ versus C#Apr 09, 2005. This article compares conditional attibuting in C/C++ and C#.
  • Attributes in C#Feb 20, 2006. In this artilcle, we will see what the attributes are and why should we use the attributes in our applications?
  • Assembly Viewer and Assembly Conflict Viewer in ASP.NETAug 10, 2006. This article show how to view assembly attributes and conflicts in ASP.NET page using C#.
  • Flash Player Custom Control for ASP.NET 2.0Dec 05, 2006. This article describes a quick and simple approach to creating a custom web control used to display shockwave flash files within an ASP.NET page. Whilst the article and demonstration project are focused upon displaying a shockwave flash (SWF) file, the basic idea is applicable to any sort of object that you may wish to embed within an ASP.NET 2.0 page.
  • Extending the ASP.NET ImageButton ControlDec 18, 2006. This article describes an easy approach to extending an existing ASP.NET control; in this example, the standard toolkit’s Image Button control is extended to support roll-over effects. Given the standard control already contains existing support for both server side click events and client click events, the control is well furbished prior to the addition of the roll-over effect.
  • ASP.NET 2.0 Visio Custom ControlJan 15, 2007. This article describes a quick and simple approach to creating a custom web control used to display Microsoft Visio files within an ASP.NET page using Internet Explorer.
  • Extending ASPX Panel Control to produce Rounded CornersMar 05, 2007. This article shows how to create a custom control which encapsulates scripts. Also shows how to add method attributes to interact with VS Designer and ToolBox as well as providing intellisense dropdowns.
  • Generate SQL Statements With Objects, Attributes and ReflectionJun 12, 2007. Create a SQL Command with SQL Statement and Parameters dynamically.
  • Read Asp.net Request Param and Session dynamically into propertiesOct 04, 2007. This Article shows how you can use Attributes and Reflection to dynamically populate property with value from param, session or context without writing any addition code. I have used this technique in past and I hope you will also find it useful.
  • Configuration Sections; Introducing the Custom Configuration Section Concept: Part IApr 14, 2008. Custom sections of an ASP.NET Configuration File are customized sections that a developer configures by himself. In this case, the developer also sets their attributes and elements to suit special application needs in terms of settings.
  • Configuration Sections- Create a configuration section group and retrieve configuration information from it: Part IVApr 18, 2008. In the previous article , we demonstrate how to create a custom section with custom attributes using the ConfigurationSection class and IConfigurationSectionHandler interface.
  • Access AssemblyInfo File and Get Product InformationsApr 22, 2008. This article tells you that .Net have the assemblyInfo file for every project and also have custom attributes to access the asseblyinfo file attributes.
  • Handle resource files - Generate a class with strong typed properties using StronglyTypedResourceBuilder: Part VIISep 03, 2008. You can generate a class with strongly typed properties issued from a given resources file elements or attributes using other way than in Part VI handle resource files where the resgen.exe is invoked to achieve such task.
  • Introduction to Enterprise Library: Part IIJan 19, 2009. This article explains Attribute based validation in a Validation Application Block.
  • Introduction to Enterprise Library: Part IIIJan 21, 2009. This article explains about Attribute based Validators and Rule sets of Validation Application Block.
  • Aspect Oriented Programming in C#.NET: Part IIFeb 19, 2009. This article is the continuation of the Part I. We will continue with the same problem of the Customer Sales application discussed in Part I.
  • Parsing Markup to represent it as ObjectsApr 01, 2009. Here I place a project I made that takes any markup and turn it in form of a MarkupDocument with elements and attributes, content etc.
  • Setting Null Value to an Entity Property Through Textbox ControlMay 12, 2009. In this article, I want to document a bug in Visual Studio. NET concerning to setting a null value to entity property’s through a Textbox control. There is a common scenario to have an entity type in your data model where some attributes are optional. When you develop a rich client application using the Windows forms, data binding techniques and a Textbox to enter the simple data, and you want to set null the optional attributes of the underlying data source by leaving in blank the Text property of the Textbox control; then there is a missing feature for the Formatting and Advanced Binding dialog box for null values. They should have a checkbox there to allow people to use blank as null. In this article, I will show one simple solution to this bug.
  • MVC Declarative BindingJun 08, 2009. One of the things that makes the bar to implement any “MVC-ish” pattern high is the tremendous amount of plumbing required just to get started in order for the different entities to communicate state changes. This article introduces a utility library that can be used to declaratively bind the model and view encapsulating all the wiring required and making implementation much easier.
  • Data Contract Hierarchy in WCFJul 10, 2009. This article will explain : Data Contract hierarchy,How base class and sub class are getting exposed in WCF?,What is Known Type attribute and Mixing of sterilization and DataContract
  • What is the AutoEventWireup attribute in ASP.NETSep 07, 2009. In this article I will explain about AutoEventWireup attribute in ASP.NET
  • Client execution from server controlsSep 09, 2009. In this article I will expalin how to execute client script from server controls.
  • XML OverviewNov 14, 2009. In this article I will explain XML and how to write an XML code.
  • XML NamespacesNov 18, 2009. In this article I will explain you about XML namespace, DTD and schemas and Extensible Hyper Text Markup Language.
  • An XML Document and its ItemsNov 19, 2009. In this article I will explain you about XML Document and its Items.
  • Reading XML Documents using C#Nov 23, 2009. In this article I will explain you how to read an XML document in C#.
  • Attributes in C#Nov 24, 2009. In this article I will explain about attributes in C#.
  • Attribute or Styles in GDI+ Dec 21, 2009. In this article I will explain about Attribute or Styles in GDI+.
  • Debugging and Tracing in C# Feb 04, 2010. In this article I will explain you about the Debugging and Tracing in C#.
  • Transparent Brushes in WPFFeb 21, 2010. All elements in XAML including all brushes have an Opacity attribute that defines the transparency of an element. This article demonstrates how to use Opacity to implement transparent brushes in WPF using XAML.
  • LINQ to XML Part 1 - XAttribute ClassFeb 21, 2010. In this article, I will give explanation on XAttribute class. This class is used to construct Attributes in XML Elements.
  • Image Attributes and the ImageAttributes Class in GDI+ Mar 11, 2010. In this article I will explain about Image Attributes and the ImageAttributes Class in GDI+.
  • LevelFinal and Exclusive Attributes in C# Mar 16, 2010. In this article I will explain you about LevelFinal and Exclusive Attributes in C# .
  • Implementing an IComparable interface to a ClassMar 31, 2010. Here I have given an example of how to sort an Person class on the basis of its attribute by implementing IComparable interface.
  • CollectionDataContract Attribute in WCFAug 03, 2010. In this article, I will explain you what is CollectionDataContract Attribute in WCF and why need it?
  • Div and Web DesignAug 27, 2010. If you develop web applications then surely you know about the Div <div> tag but many of you guys never have a usuful look on it. As i know div tag is the backbone of a consistent css used website. Basically div is a section you can say which separate the sections in a webpage. But div not only separate the contents but it also provides the different formating for each section.
  • Create Restful WCF Service APIAug 30, 2010. In this article I am going to explain you how to implement restful service API using WCF 4.0 . The Created API returns XML and JSON data using WCF attribute.
  • Reflection and Attributes in C#Sep 03, 2010. Attributes are attached to program entities such as types and methods to provide information about the entity at runtime. In this article, we will explore attributes using reflection in C#.
  • IgnoreDataMember Attribute in WCF POCO SerializationSep 29, 2010. In this article we will see about IgnoreDataMember attribute in WCF POCO Serialization.
  • What is new in HTML 5Nov 09, 2010. HTML 5 is the latest version of HTML that introduces several new features to keep with the Web 2.0 standards such as audio and video capabilities.
  • Working with Silverlight and XNA windows phone 7 application OrientationNov 17, 2010. When you run the SilverlightHelloPhone program, and you turn the phone or emulator sideways, you'll discover that the display doesn't change to accommodate the new orientation, To fix that problem you have to make change in the root PhoneApplicationPage tag, of MainPage.xaml change the attribute.
  • Reading XML Attributes using LINQ to XML in Silverlight Nov 29, 2010. This code snippet demonstrates how to load an XML file and reads its nodes and their attributes in a Silverlight application using LINQ to XML.
  • Working with Attributes and Resources of XAML in Windows Phone 7 Nov 30, 2010. Many classes that you use in XAML have something called a ContentProperty attribute. This word “attribute” has different meanings in .NET and XML; here I’m talking about the .NET attribute, which refers to some additional information that is associated with a class or a member of that class.
  • Basics of DataContractDec 08, 2010. DataContract is under namespace System.Runtime.Serialization. During design time, DataContract Attribute is used to indicate which class should be represented as XSD.
  • Using reflection and attributesDec 12, 2010. Reflection provides objects (of type Type) that encapsulate assemblies, modules and types. You can use reflection to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object and invoke its methods or access its fields and properties.
  • How to Read / Search Node or Attribute in XML fileDec 21, 2010. In this article you will learn how to Read / Search Node or Attribute in XML file.
  • XMLDocument (DOM) and XDocument (LINQ)Jan 20, 2011. Before LINQ to XML we were used XMLDocument for manipulations in XML like adding attributes, elements and so on. Now LINQ to XML uses XDocument for the same kind of thing. Syntaxes are much easier than XMLDocument and it requires a minimal amount of code.
  • Image Filters using HTMLJan 28, 2011. Filters give a great variety of visual effects in web pages dynamically. We will see different types of filters in this article.
  • Generalized Class for TombstoneFeb 02, 2011. This is the simplest way for handling the Tombstone using Reflection and Custom attributes. We can use this code for tombstoning your application.
  • 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”.
  • Canvas in HTML 5Mar 17, 2011. As you well know HTML5 has some new elements including the Canvas element. A Canvas is an object that displays graphics in it.
  • Web Farm - Simple OverviewMar 25, 2011. In this article we are going to discuss a simple overview of the Web Farm and its advantages.
  • Calling Unmanaged Functions Which Take a Variable Number of Arguments From C#Mar 29, 2011. Many C# programmers are familiar with the Platform Invoke mechanism (using the DllImport attribute) for calling unmanaged functions from C#.
  • Filter Search in JQ Grid Using Jquery in ASP.NET ApplicationMay 11, 2011. In this article I will describe how to do a filter search by comparing two given attributes in another window.
  • Maintaining Scrollbars in Document Editing ApplicationsMay 15, 2011. When coding a document editing application, maintaining scrollbars is a task that must be done correctly to have an accurate and responsive document viewer. This article gives precise instructions how to calculate values of different scrollbar attributes so that scrolling functionality is coded correctly.
  • Drag and Drop in HTML 5Jun 01, 2011. Drag and Drop API is one of the most important part of HTML5 API specifications because more and more sites are using the drag and drop functionality.
  • Attributes in C#Jun 08, 2011. In this series we will see the usage of “Attribute” with the help of some examples and creation of our own custom attributes to be used in a sample use case.
  • HTML5 in Visual Studio 2010Jun 21, 2011. This article shows how to use HTML5 with Visual Studio 2010.
  • Introduction to HTML5Jun 30, 2011. HTML5 is the latest version of HTML and XHTML with new features like Drawing, Animation, Video and Audio etc. It is used to solve some of the more common structural problems encountered with HTML 4.1.
  • Use of Anchor, Comment and DOCTYPE in HTML 5Jul 01, 2011. An introduction to the Anchor, Comment and DOCTYPE tags in HTML 5
  • Working With Abbr And Address Tags in HTML5Jul 04, 2011. An abbreviation is a shortened form of a word or phrase and is used to clearly indicate a sequence of characters. An Address tag is used to display contact information of authorship or ownership on a web page.
  • Working With Area Tag in HTML5Jul 05, 2011. The <area> tag is used only within a <map> tag. The <area> tag is used to define the areas on the image map that whenever user clicks on the area user will navigate to other page.
  • New Article Tag Introduced in HTML5Jul 06, 2011. The <article> tag specifies a component of a page that consists of self-contained, independent and reusable content. The HTML <article> tag is used to represent an article.
  • A Few Simple Tags in HTML5Jul 07, 2011. Here are a few simple tags in HTML5.
  • New Aside Tag Introduced in HTML 5Jul 07, 2011. This is a new tag introduced in HTML5. The <aside> tag is used to enclose content that is tangentially related to other content; the element may be associated within an article or web page and is typically useful for marking up sidebars.
  • Creating a Custom Markup Extension in WPFJul 08, 2011. Custom Markup Extension enables you to extend XAML and set any property that can be set in XAML using attribute syntax.
  • Base Tags in HTML5Jul 11, 2011. A Base tag is usually used to set a default (base) URL or relative links for all subsequent relative links.
  • Use of BDO Tag in HTML5Jul 12, 2011. HTML5 has a BDO tag to override current directionality of text from right to left or left to right.
  • Set Space From Both Left And Right Side Using Blockquote Tag in HTML5Jul 13, 2011. The Blockquote tag set white space on both left and right side of document. It is mostly use for long quotation and it renders paragraph breaks.
  • Introduction to HTML5 StorageJul 13, 2011. This article introduces the concepts of HTML5 Storage and then works through a code sample demonstrating the use of HTML 5
  • Body Tag Used to Define Content in Document in HTML5Jul 14, 2011. The body tag is used for defining the body content of a document. The body tag must be placed after the end of the head element inside the html element.
  • Role of Div Tag in HTML5Jul 16, 2011. The div tag is used for making a division in a document. You can also format a div layout using CSS.
  • HTML5 Support Detection Using ModernizerJul 16, 2011. This article describes how to detect if the client browser supports HTML5 features using the Modernizr ibrary
  • Working With Button Tag in HTML5Jul 18, 2011. This is a rich button tag that is used to create a push button. It is a clickable button.
  • Cite Tag in HTML5Jul 20, 2011. The Cite tag is used to represent the title of a work from a paper, essay book etc
  • Audio Tag in HTML5Jul 20, 2011. You can play audio sound using an audio tag. This is a new tag introduced in HTML5.
  • Code Tag Use to Represent Code Syntax in HTML5Jul 21, 2011. The code tag encloses text in source code of a programming language.
  • Introduction to HTML5 Web WorkerJul 21, 2011. In this article we have a look at HTML5 Web Workers which enable building of responsive web applications.
  • Command Tag (Part of a Context Menu) in HTML5Jul 25, 2011. A Command tag is used to represent a command that the user can invoke like a radiobutton, a checkbox and a button or any other button that the user can interact with.
  • Use DataList Tag as Drop Down List in HTML5Jul 26, 2011. The Datalist tag represent a list of options that represent predefined options for other controls. A DataList is not visible to the user, but it is associated with the input tag through the input tag list attribute.
  • Working With the <dl>, <dt> and <dd> TagsJul 27, 2011. The HTML5 dl, dt and dd tags are used to list data.

About HTML5-Attributes

NA

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!
techbash 2016