C# Corner

Resources  
  • Calling a COM Component From C# (Late Binding)Jan 08, 2001. This code sample shows how to call a COM component in .NET framework using C#.
  • Display data in a Data GridJan 22, 2001. The sample example show you how to use Data Grid to display data in a grid format.
  • Working with OleDb Data AdaptersJun 20, 2001. This step by step article guides you to create your database applications using OleDb Data Adapters in VS.NET.
  • Working with Data Bound ControlsAug 07, 2001. Step by step tutorials teaches you how to use data-bound controls DataGrid, ListBox, and ComboBox controls .
  • Constructor and Destructors in C#Oct 10, 2001. This detailed article talks about how constructors and destructors work in C# and how to use them in your applications.
  • Understanding Properties in C#Oct 15, 2001. In C#, properties are nothing but natural extension of data fields. They are usually known as 'smart fields' in C# community.
  • Using ADO RecordSet in ADO.NETDec 10, 2001. Using ADO recordset in managed code using ADO.NET data providers is pretty simple. Visual studio .NET provides you to add reference to the COM libraries. In this article I'll show you how to access data using ADO recordset and fill a ADO.NET data provider from the recordset data.
  • Data Binding in DataGrid Control - Part 1Feb 05, 2002. When it comes to data-bound controls and database programming, DataGrid control is the most versatile , powerful and flexible control available in Visual Studio .NET.
  • .NET Static Variables : Better than Application!Feb 22, 2002. In traditional ASP, we always had the Application object to store application-wide variables in.
  • Check Your Mobile Device CapabilitiesMay 16, 2002. This sample is a utility to determine the capabilities of a Mobile Device. The MobileCapabilities class available in the Mobile Internet Toolkit provides a list of useful information on the client device.
  • Customized Windows Forms Look and FeelMay 28, 2002. I have encountered instances when I needed a high level look and feel of Windows Forms and controls.
  • Using Currency Manager and MemoryStream to Display ImagesJul 01, 2002. This article and attached sample code demonstrates you how to use the CurrencyManager and MemoryStream to display images.
  • Programming Template in Web Server ControlsJul 15, 2002. Templates play a major role in managing the layout and format of the data being displayed in ASP.NET data bound controls.
  • Master-Detail Display using Nested Repeater Web Forms ControlAug 05, 2002. In this example, we will create a web page that displays a formatted view of data with a master detail hierarchy using nested Repeater controls. We will use the Northwind sample for our example. There are many different ways to accomplish this task. We will use data binding and data relations in an effort to get a simple solution.
  • Hex Colors in C#Sep 05, 2002. Currently I am developing a shareware application for generating image galleries for the web. There is a template engine built in that allows the user to specify colors as hexadecimal values, plus many other features.
  • User Management Utility for Web Form AuthenticationSep 06, 2002. This article deals with the management of user login and password information for a Forms Authentication in ASP.NET.
  • Static Constructor in C# and their Usages.Sep 09, 2002. Static constructor is used to initialize static data members as soon as the class is referenced first time, whereas an instance constructor is used to create an instance of that class with <new> keyword.
  • COM Interoperability Part 1: Using COM Components in .NET FrameworkJan 02, 2003. In this article we review the concepts & walk-through an example that demonstrates COM interoperability in .NET framework.
  • AddressParserFeb 06, 2003. The AddressParser class provides 2 static methods - ParseIpAddress and ParseMacAddress.
  • How to use C# ConstructorsApr 08, 2003. This article gives a brief introduction, features of constructors their usage and also an idea of how to use C# constructors.
  • Implementing Custom Paging in ASP.NET DataGrid ControlJun 01, 2003. This article shows you how to implement custom paging in ASP.NET DataGrid control.
  • Sorted List and Web Server ControlJun 09, 2003. This article shows you to take advantage of SortedList in data binding with Web Server controls.
  • Formatting ASP.NET DataGrid's DataJun 17, 2003. This article shows you how to change the color of a DataGrid row and format of date.
  • DataGrid and Client Side EventsJun 17, 2003. This article shows you how to use DataGrid client side events including mouse over, on click and so on.
  • How to Change DataGrid Header Text?Jun 30, 2003. This article shows you how to change the header text of a DataGrid programmatically.
  • Building a Navigation System in ASP.NETJul 16, 2003. This article shows you how to display single record per page and navigate through single record using ASP.NET.
  • Late Binding With ReflectionOct 20, 2003. Component based technology has done great things for software development, allowing reuse and leading to better-written code that separates subjects and entities into distinct components.
  • Edit/Update a Chosen Database RecordDec 09, 2003. This article and available source code shows how to edit and update a database record through a DataGrid control
  • Display Alphabetically Sorted Data in a Data GridDec 24, 2003. This code sample shows you how to display data sorted alphabetically based on the values in the database.
  • Data Binding in DataGrid Control using C#Feb 17, 2004. The ADO.NET DataSet is a data construct that can contain several relational rowsets, the relations that link those rowsets, and the metadata for each rowset. The DataSet also tracks which fields have changed, their new values and their original values, and can store custom information in its Extended Properties collection. The DataSet can be exported to XML or created from an XML document, thus enabling increased interoperability between applications.
  • Oracle Data Provider for .NET : Part VIFeb 20, 2004. Oracle Data Provider for .NET (ODP.NET) is an implementation of a data provider for the Oracle database. ODP.NET uses Oracle native APIs to offer fast and reliable access to Oracle data and features from any .NET application.
  • Understanding SQL Server Yukon Service BrokerFeb 25, 2004. The new version of Microsoft SQL Server™ "Yukon" comes together with a set of technologies capable of enlarging the horizon for database applications. One of the most remarkable technologies is the Service Broker that makes it possible to build database-intensive distributed applications. In this article we explore the core concepts of the Service Broker and show how to use its potentialities to build applications with message interchanging.
  • SOAP Client in Windows XPMay 06, 2004. This article covers the basics of using the SOAP Client software included with Microsoft Windows XP Professional to access Web Services using SOAP.
  • Constructors In C#May 06, 2004. This article explains constructors in C# with sample examples including constructor overloading, static constructors, and constructor chaining.
  • Using the Tablet PC as a Flashing Restaurant Menu in C# and .NETJun 08, 2004. This is a simple application written for a restaurant using Tablet PC that allows you to list such things as lunch specials and have the colors on the board change randomly to produce an interesting flashing sign effect.
  • Object Binding in DataGrid with C#Jun 15, 2004. In this article, I will discuss how to bind objects such as an ArrayList to a DataGrid control using C#.
  • 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().
  • Introduction to ASP.NETNov 17, 2004. I have seen many tutorials on ASP.NET but most of them starts with coding and writing your first ASP.NET program. But here I have written this tutorial for explaining why there is a need for ASP.NET when classy ASP is working fine, what are the underlying technology behind ASP.NET, and what programming model ASP.NET provides to programmers.
  • New Features of C#2.0 - Static ClassesApr 13, 2005. Static classes are used when a class provides functionality that is not specific to any unique instance.
  • Accessing Global Address List via System.DirectoryServices namespaceMay 21, 2005. This is a how-to article to access the GAL from ASP.NET, using the DropDownList ASP.NET server control as the UI. To accomplish this the article will illustrate by utilizing ADSI technology from a C# assembly returning an ArralList in order to bind to the DropDownList.
  • Accessing Global Address List via System.DirectoryServices NamespaceMay 21, 2005. This is a how-to article to access the GAL from ASP.NET, using the DropDownList ASP.NET server control as the UI. To accomplish this the article will illustrate by utilizing ADSI technology from a C# assembly returning an ArralList in order to bind to the DropDownList.
  • What is new in C# 2.0?May 30, 2005. In this article, I discuss new features added to C# 2.0.
  • Object DataSource in ASP.NET 2.0Aug 19, 2005. ObjectDataSource control is one of these new data control added to ADO.NET 2.0. This control is used to bind objects to data-bound controls. In this step by step tutorial, I will discuss how to use ObjectDataSource control in your data-driven Web applications.
  • Introduction to ADO.NET 2.0 Data Source ControlsAug 19, 2005. ADO.NET 2.0 provides new data source and data-bound server controls, which allow developers to write full-fledged data-driven applications without writing even a single line of code. This article is an introduction to these new data source controls.
  • Binding an ArrayList with DataGrid ControlOct 24, 2005. I have seen several questions on how to bind an ArrayList with data-bound controls such as a DataGrid. In this step by step tutorial, I will show how to create an ArrayList of objects and bind it to a DataGrid control.
  • Glue IIS with Business Logical Tier using Batching, Asynchrony, and Parallel ComputationOct 26, 2005. A great and unusual way to boost your web application performance and scalability five times or more.
  • How Do I Bind Datagrid with SqlDataReader in C#Oct 29, 2005. This article will show, how do we bind our binding controls like DataGrid, DataList using SqlDataReader.
  • Presenting Child Data along with Parent Row in Data GridNov 10, 2005. This article explains how we can bind the parent and child data to a Data Grid with minimum code effort using the Repeater control.
  • Set Web User Control Properties in Design Time Jan 27, 2006. This article will show that how can we initialize properties of web user control when we register it on some web page.
  • C# Heap(ing) Vs Stack(ing) in .NET: Part IVJan 30, 2006. Having a basic understanding of how memory management works will help explain the behavior of the variables we work with in every program we write. In this article we’ll look further into Garbage Collection (GC) and some ways to keep our applications running efficiently by using static class members.
  • New features in C# 2.0Feb 18, 2006. In this article, I will learn about and use the new features in C# 2.0 added by the Microsoft designers, such as generics, anonymous methods, partial types, static classes, nullable types, and limiting access to properties.
  • Customized Binding Using CollectionBaseMar 04, 2006. In this article I am trying to explain the use of CollectionBase class. In a simple example I used CollectionBase to bind a DataGrid control with data from Employees table of NorthWind database. So please be sure that your system exists with NorthWind database before using the sample code along with this article.
  • DataSource controls in .NET 2.0Mar 04, 2006. In this article, we're going to learn how to connect a database for querying data and binding the result set to ASP.NET controls in a very easy way with no looping or control manipulation required, thus avoiding writing any data source code.
  • Using static variable and Activated Event for Building "Home" Button of Windows applicationApr 10, 2006. In this tutorial I will share experience how , just with the help of a few clicks and a few lines of code , to build a windows application with "Home" button, that allows to return to "Home" form (in fact to close all opened forms by one click) . The examples are written using C#.
  • How to Automatically Send a Resolution Optimized Markup of a Web Page to the ClientApr 15, 2006. This article will tell you about a technique through which you can make intelligent ASP.NET websites which will automatically detect the resolution of the visitor's desktop and generate a resolution optimized mark-up of a page, not forcing the visitor to keep the resolution of his/her desktop according to the website's best view resolution.
  • Building applications with DLinq DesignerJul 01, 2006. DLinq designer is the visual design surface to create the entity objects and bound the controls to the dlinq objects with relationships. We can easily create the windows form using the designer. The developer need not take more time to design the User Interface. The designer itself suggests you the controls suitable for the selected fields.
  • Accessing Data using Object Data Source in ASP.Net 2.0 and C# Aug 23, 2006. This tutorial demonstrates how to bind data against Objects using Visual Studio 2005.
  • Bind Objects to a DataGridView ControlFeb 12, 2007. This article describes a simple approach to displaying object property data within a data grid view control.
  • XML Data Binding in WPFApr 11, 2007. This article describes how to bind XML data using a data template in WPF and XAML. For ease of demonstration, the XML is defined as a resource within the XAML document.
  • OleHelper for Microsoft Access (.MDB) in ASP.NET 2.0Apr 18, 2007. This article is very much similar to the Microsoft Data Access Application Block, provides static methods in a "sealed class OleHelper" where I have Execute Dataset, ExecuteNonQuery & PrepareCommand to work with Microsoft Access database.
  • C# Asynchronous, Multi Threaded Development... Digging In. Part IIMay 13, 2007. In this article we'll dig a bit deeper into what is actually happening when we use the asynchronous calls using C#. Just as in my previous article, we'll simulate a long running I/O bound process as if we were fetching records from a database, making a web service call or reading or writing from a file and see how we can write more performant code by letting the main thread continue on and not wait for the results. 
  • Multi-threaded Asynchronous Programming in C#. Async Database Calls. Part III.May 14, 2007. In my last couple articles we looked at basic ways to have long-running i/o bound process be handled by the ThreadPool using the asynchronous programming model. In this article we’ll take a look at coding async calls against SqlServer which really comes in handy in production environments where our database is on another machine.
  • WPF ComboBox doesn't bind correctly - Binding to Nullable Ints Jun 07, 2007. If you have been working with WPF and have had issues with your ComboBox or any list control binding then you can stop pulling your hair out.
  • Distributed Transaction Coordinator/Control in asp.net (DTC)Jul 31, 2007. A transaction is a series of work perform as a single unit of work consistency and reliability of the system, can be achieved by binding a set of related operations together in a transaction. Here I will be discussing how we can run distributed application in a application.
  • Data Binding using LINQ to SQL in C#Aug 09, 2007. LINQ to SQL allows developers to work with databases using LINQ. This article discusses how to get, add, update, and delete data in a DataGridView control using LINQ to SQL.
  • Data Binding in WPF Windows ApplicationAug 23, 2007. In this tutorial I will discuss on how to bind Data with WPF windows application.
  • Creation of objects using Late-Binding techniqueSep 10, 2007. This article will explain how we can create objects in runtime, using late binding technique. Especially for a situation where you will come to know the class name only in runtime.
  • Managed Static Code Analysis in VSTS: Part ISep 24, 2007. This article attempts to explain the concept of static code analysis and tools that can be used to realize it with a focus on managed code analysis.
  • Data Binding in WPF ListViewOct 05, 2007. This article shows how to extract data from a database and show in a WPF ListView control.
  • Fade Out a Form in C#Oct 30, 2007. This article describes a simple approach to fading out a form.
  • Developing an Email Activity Control in WFDec 12, 2007. This article demonstrates activity binding and shows how to use an activity such as email within a workflow.
  • Binding The TreeView Control to XML DataJan 15, 2008. This article explain how to bind the TreeView control to an XML file.
  • DetailsView Rich Data ControlFeb 01, 2008. DetailsView is a data-bound control that renders a single record at a time from its associated data source.
  • Filter data dispalyed in a DataGridView using BindingSource and DataViewFeb 27, 2008. In this article i will show you how to use the BindingSource or the DataView to filter data in a given data grid view.
  • Consolidate Your Binding CodeMar 22, 2008. I've noticed that in data driven UI projects there is often lots of repeated code wherever there is data binding. In this article we'll look at consolidating all the binding code in a helper class to make projects much easier to maintain by reducing the amount of code we have to dig through.
  • F# Tuples and Binding (and more Binding)Mar 26, 2008. Binding in F# is similar to using variables in C# but there are some big differences. This article discusses one of the most used keywords in F# for binding ("let") and how it is different than setting a C# variable. I also cover the tuple F# data structure.
  • Explicitly Binding Data to ListView Web ControlMay 19, 2008. This article talks about binding data without SqlDataSource and Eval / Bind methods.
  • Data Access and Data Binding in Silverlight Controls using WCF ServiceJul 15, 2008. In this article I will discuss how to bind data to Silverlight controls and access data in Silverlight 2 using WCF Service.
  • Data Binding in WPFAug 05, 2008. In this article, I discuss how we can use ADO.NET DataSet to get data from a database and bind to a WPF ListBox control using data binding process in WPF.
  • Data Binding in WPF ControlsAug 11, 2008. This article shows how to add data binding support among controls in WPF.
  • ListBox in WPFAug 26, 2008. This tutorial shows you how to create and use a ListBox control in WPF and XAML. The tutorial also covers styling and formatting, add images, checkboxes, and data binding in a ListBox contrtol.
  • Dynamic and static Rectangle in WPFAug 29, 2008. This article shows how to create dynamic and static rectangle in WPF and XAML with various drawing effects.
  • Constructor vs Static ConstructorOct 23, 2008. This article explains you the basic difference between the constructor and static constructor via example.
  • Data Binding in Windows Forms 2.0Dec 02, 2008. This article is intented to illustrate the principles of data binding in .NET Windows Forms 2.0 as well as a description of data set and data-bound controls.
  • ASP.NET ObjectDataSource Control OverviewDec 04, 2008. This post explains how to represent business objects with the ObjectDatasource control. It allows you to bind DataBound controls such as GridView, DetailsView and FormView. It also enables you to separate your business logic and data access logic from presentation layer.
  • Data Binding Techniques Using Visual Studio.NET and JDeveloperDec 08, 2008. Today data binding techniques are very easy to apply using IDE such as Microsoft Visual Studio.NET and Oralce JDeveloper. In this article, I will show how to develop a client/server enterprise application by applying the Model-View-Controller (MVC) design pattern and using development tools such as Microsoft Visual.NET and Oracle JDeveloper.
  • Bind a Silverlight DataGrid to a given XML data sourceDec 10, 2008. In this article, I will illustrate how to bind a Silverlight DataGrid to a given XML data source
  • C# and XAML within a Silverlight 2 context? - Binding process: Part IIIDec 18, 2008. In this article I will continue with the Binding process and I will demonstrate binding technique but from the C# code behind this once.
  • XAML and C# -Introduction: Part IDec 18, 2008. This article is supposed to be an introduction to Data Binding logic within Silverlight 2 context, five questions are introduced in this context and they will be answered briefly in this introductry article and in more details in the subsequent parts.
  • XAML and C# within a Silverlight 2 context - Binding process: Part IIDec 22, 2008. In this article, I will show different techniques to interact with a given XAML UI with a C# code behind object.
  • C# and XAML within a Silverlight 2 context? - Binding Modes: Part VIIIDec 30, 2008. In this article I will expose the different binding modes.
  • Developing Web Applications using data binding technologiesJan 22, 2009. This article is intended to illustrate how to develop Web application using data binding technologies in Microsoft Visual Studio.NET and Oracle JDeveloper.
  • SQL Server Compact and LINQFeb 13, 2009. In this article, I will cover how to access data in SQL Server Compact databases (.sdf file) using new development technologies such as LINQ.
  • Two-Way Databinding in WPFFeb 16, 2009. This article kick starts your two way data-binding model in WPF.
  • Control to Display Binary Images in ASP.NETApr 02, 2009. The RbmBinaryImage control will help you display images directly from your database. You could bind the Image field directly to the ImageContent property, also you could specify whether you want the display to be as a thumbnail or not and provide the thumbnail size.
  • Custom paging in ASP.NET 2.0 and SQL Server 2005 using ObjectDataSourceApr 13, 2009. This article is intended to show how to apply the paging mechanisms in Web applications using ASP.NET 2.0 and SQL Server 2005 as well as using the ObjectDataSource components.
  • Master-detail data-binding using DropDownList in ASP.NET 2.0Apr 17, 2009. This article is intended to illustrate how to implement the master-detail presentation pattern using the ObjectDataSource components and DropDownList Web control.
  • Run Time Data Binding in SilverlightApr 20, 2009. This article will explain about run time Data Binding in Silverlight.
  • Data-binding in ASP.NET 2.0 using GridView controlApr 22, 2009. In this article, I will cove the principles and techniques of data binding with ASP.NET 2.0 and SQL Server 2005.

About static-binding

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