C# Corner

Resources  
  • Yahtzee Program using C#Jan 24, 2000. The Visual C# environment has given the programmer the ability to create applications in RAD mode without the steep learning curve for the C++ programmer. (I do miss templates though!). The above application, yahtzee, is based on a popular poker-like dice game.
  • Using Interfaces in .NET RemotingNov 30, 2001. In this article, we will create a remote object that will return rows from a database table. For the sake of simplicity I have used the NorthWind database that is packed with the installation of the Microsoft SQL Server.
  • N-Tier Development with Microsoft .NET : Part IFeb 15, 2002. The purpose of this article is to examine a proof of concept on an architecture that follows the DNA pattern on concept only.
  • JIT CodingMar 11, 2002. One not so well known feature of .NET platform is possibility to invoke compiler and practically create code and assembly from running instance of application. It is possible to do that in two ways. First one is a bit simpler and involves namespaces System.CodeDom and System.CodeDom.Compiler, second one is more efficient and utilizes namespace System.Reflection.Emit. Since there are very few examples about how to use System.CodeDom.Compiler I will start with it.
  • 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.
  • 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.
  • 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.
  • Basics of Extending Your Working Environment in Visual StudioApr 10, 2003. All of us have used Macros in Microsoft Office and Add-ins in Visual Studio 6 and I am very sure all of us have been impressed as well by their power to control their own working environment.
  • ODBC usage in .NETSep 24, 2003. This article will provide a template of how to represent a smallint, integer, decimal, varchar and other ODBC data types that are used in the SQL Server environment in COBOL.
  • Reading and Display Source of Web PagesDec 30, 2003. This sample project is made to help ASP.NET developers. This projects highlights how to add HTML page inside your ASP.NET page which is hosted on same or different webserver. This page can still run on that server and only output is included in the ASP.NET page.
  • Automate the process of documenting your codeDec 04, 2004. The Visual Studio .NET IDE allows to document your code in a way that the compiler can create an XML document describing your classes, methods, properties, etc. This article explains how to use this feature and then create a basic help file out of it.
  • MADLibs.NET and C# and ASP.NETMar 22, 2005. The MadLib.NET game will continue to prompt the user with each grammar only in the <> brackets. When the programming engine reaches the end of the template, the story is displayed.
  • Insert Master-Detail Data using Transact-SQLJun 24, 2005. Microsoft SQL Server 2000 SQLXML allows among other things to manage batch operations in a database, which reduces significantly the need of more than one round-trip to a database. OpenXML is a Transact-SQL statement that allows to represent data in XML format and can be used to insert, update, and delete more than one row (represented by an element) in a table or group of tables.
  • ASP.NET Whidbey FeaturesNov 10, 2005. ASP.NET 2.0, the latest version of ASP.NET has many improvements that greatly increase developer productivity. This article gives you a peek into many of these new features available in ASP.NET Whidbey.
  • Using Snippets in Visual Studio 2005Nov 10, 2005. Visual Studio contains several built-in intellisense code snippets. Snippets are like templates and can be described completely in XML. If you understand the snippet xml schema, you can easily begin to create your own snippets.
  • 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.
  • Template for Designing Web ApplicationNov 14, 2005. This article explains to develop a web application with ease and make it more robust and scalable.
  • Master Pages in ASP.NET 2.0Nov 15, 2005. Master pages is a new concept in ASP.NET 2.0, which allows site developers to build master templates for their site's look and feel and put all common code which is shared by all the pages.
  • Building Windows Longhorn Applications using Visual Studio codename WhidbeyNov 15, 2005. The preview version of the next version of Visual Studio 2003 is called Visual Studio codename Whidbey. Visual Studio Whidbey has a support for building applications for Windows codename Longhorn, which is a new addition to the Windows operating systems series and successor of Windows XP.
  • Creating Custom Template for Web User Control in Visual Studio.NET 2003 Nov 25, 2005. This article shows you how to create custom template for web user control in visual studio 2003. The attached sample application will install the custom template for the name given for either VB or C# language and also uninstall the custom template.
  • A Loader and Game Pad for Playing SudokuJan 13, 2006. This C# application will allow you to load existing Sudoku games, manually create your own games, save, print, and check Sudoku puzzles, and more. The article also describes how to use the XmlDocument class to persist Sudoku templates and games in progress.
  • Creating Custom Templates in SharePointJan 29, 2006. This article is all about creating custom templates in SharePoint.
  • Generics in C# 2.0Feb 02, 2006. In this article we will see how we can use generics in C#, we have read this concept as templates in C++.
  • An Introduction to C# GenericsFeb 06, 2006. There is a reality; most of the developers confuse about C# Generics. Actually, there is no reason for that. If your background comes from C++ or Java you may understand more easily. What “Templates” tell you from your C++ knowledge or “Generics” from Java.
  • AJAX Repeater control Feb 19, 2006. AJAX has been in shadows for a decade now but it started buzzing right after the launch of the Google Earth. This article shows how to create an AJAX Repeater control with item, header, footer, alternative item, and seperator item templates using AJAX and ASP.NET.
  • Create Meta Tags Programmatically in ASP.NET 2.0Apr 07, 2006. In ASP.NET, we had an option to add head tags in HTML where we could define our Meta tags like keyword and description but in ASP.NET 2.0 if we use master page inheritated page then there is problem to add meta tags. This article explains how you can add meta tags in ASP.NET 2.0.
  • An Elegant C# Data Access Layer using the Template Pattern and GenericsMay 22, 2006. The GOF Template pattern coupled with .NET 2.0 Framework generics provides an awesome synergistic alliance. This article demonstrates how to drastically reduce the amount of code required in building a data access layer. Less code to debug... less code to break... less code to maintain... what could be better?
  • Embedded Datagrids with Add, Edit and Delete funtionalityJun 02, 2006. This article features an embedded Datagrids with Add, Edit and Delete funtionality.
  • Multiple Masters Pages in ASP.NET ApplicationJun 16, 2006. This article will explain that how can we use multiple master pages in our application and can access properties at run time.
  • Dynamic Data Grouping using MS Reporting ServicesAug 07, 2006. This article shows to generate multiple outputs from a single physical report template using dynamic data grouping.
  • Enhanced way to send E-mail with a TemplateOct 06, 2006. E-mail is used to send notification to customer nowadays, and since any smart developer try to send any notification in a professional format, one of these issues to send your notification in a template, this template might be your employer template or any other template you want to send it from your application.
  • How to create and use Master Pages in ASP.NET 2.0Nov 01, 2006. This small tip shows you how to create and use simple master pages in ASP.NET 2.0.
  • Working with Master Page in ASP.NET 2.0 Nov 06, 2006. This article gives you a step by step method of working with master page in ASP.NET 2.0.
  • A guide to ObjectDataSource controlNov 17, 2006. One of the best new features of the forthcoming ASP.NET 2.0 will be the ObjectDataSource control. However, as I found out in my experimentation what seems like a simple control has some complex behaviours to master to get it working properly. If (like me) you have an existing data access layer you may have to make changes to be able to use ObjectDataSource.
  • Tip related to sub containers and SqlDataSourceDec 06, 2006. This article provides some tips when working With Master page or SqlDataSource insert function In VS 2005.
  • 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.
  • Cross browser conditional validationOct 25, 2007. This article show how to show/hide textbox with required field validation on radio button click in a master page.
  • Host a combo box column within a DataGridView control Feb 26, 2008. In this article I willl show how to host a data grid view combo box column within a data grid view control.
  • Save TreeView Nodes ExpansionJun 24, 2008. We frequently use an ASP.NET TreeView as a navigation menu. This works well on a single page but if you include the control on a Master Page, it looses its expansion state as you move from one content page to another.
  • Writing Your Own GPS Applications: Part IIAug 19, 2008. In part two of the series, the author of "GPS.NET" teaches developers how to write GPS applications suitable for the real world by mastering GPS precision concepts. Source code includes a working NMEA interpreter and sample high-precision application in C# and VB.NET.
  • Nested Master Pages in ASP.NET 3.5Sep 02, 2008. Nested Master pages are used when you are build a hierarchy of templates for your web site. This article explains the improved designer for creating Nested Master pages in Visual Studio 2008 and ASP.NET 3.5.
  • Using a JavaScript Calendar Control in Master PagesOct 20, 2008. This article shows how to use a JavaScript Calendar control in master pages.
  • SharePoint Quick Start FAQ: Part IIJan 14, 2009. In the previous session of SharePoint article we had discussed about the basics of SharePoint. In this session we will - create site &#47; site collection, understand the ready made functional reusable modules, learn how we can display a simple page and later apply master pages of SharePoint, host a Inline code and behind code page in SharePoint, understand the concept of features and understand step by step how to enable &#47; disable a feature, how do display a feature in Admin.
  • Introduction to Dynamic Data Web Application Model: Part IJan 15, 2009. This article gives an introduction to Dynamic Data Web Application Template
  • SharePoint Quick Start FAQ: Part IIIJan 15, 2009. This is my third series of SharePoint Quick Start FAQ. We will cover page templates , page instances , WSS model , understand safe mode processing , deploy custom controls and understand WebParts. So let’s drink the SharePoint wine series by series, slowly , maintain the hangover and enjoy this great product.
  • 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.
  • Introduction to Dynamic Data Web Application Model: Part VIFeb 18, 2009. This article explains about interfacing Stored Procedures and Dynamic Data Entities Web Application template.
  • Easy LINQ to SQL Based Master-Detail Editor C#Feb 22, 2009. This article describes a simple approach to creating a LINQ to SQL based master-detail view with the ability to save changes made to the data. With practically no coding involved, the application below will allow the user to edit the master record as well as the detail records.
  • Introduction to Template Method PatternFeb 27, 2009. This article explains about Template Method Pattern in C#
  • Introduction to Templates in Visual Studio 2008Mar 04, 2009. This article explains about Visual Studio Templates.
  • 8 Steps to create workflows using SharePoint designer Apr 15, 2009. Workflows are now an integral part for any project. You can build a SharePoint work flow using the available templates, SharePoint designer and using visual studio 2005 / 2008. This tutorial will mainly concentrate on work flow creation using Sharepoint designer. We will walk through the basic 8 steps needed to create work flows using Sharepoint designer.
  • 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.
  • Master-detail data-binding using DropDownList in ASP.NET 2.0Apr 28, 2009. This article is intended to illustrate how to implement the master-detail presentation pattern using the ObjectDataSource components and DropDownList Web control.
  • Master-detail data-binding using two Web pages in ASP.NET 2.0Apr 29, 2009. This article is intended to illustrate how to implement the master-detail presentation pattern using the ObjectDataSource components and two Web pages in ASP.NET 2.0. Master-detail presentation pattern is one of the techniques most used in enterprise applications intended to visualize one-to-many relationships, for example, let’s suppose the following a common business scenario where we want to display a list of subcategories of products, and allow the user select a particular subcategory in order to display the list of associated products.
  • Customizing GridView control for data modificationsApr 29, 2009. This article is intended to illustrate how to customize GridView controls for data modification.
  • Button Control Template In Silverlight 3Jul 07, 2009. Using Blend 3 Creating Button Control Template in Silverlight 3
  • Dynamic Data Web Application in ASP.Net 3.5 Extension Part#2Jul 10, 2009. This is Part#2 of ASP.Net Dynamic Data article series. This article will give introductions of different scaffold templates. This article will explain how to customize the templates also. This article is containing three samples which is demonstrating, how to update the default templates.
  • Developing a New Control Using VSM in Silverlight 3Jul 31, 2009. Silverlight provides a Visual State Manager (or VSM) that manages different states as users interact with controls. For example, you might want to change the background of the Button as the user mouses over it and make it look slightly bigger or smaller when a user clicks it. All of this can be done using the Visual State Manager. The discussion that follows will walk through show how custom templates and VSM states can be created visually.
  • Implement Master Pages in SilverlightAug 21, 2009. There are several posts about how to implement the master page feature in Silverlight. So the question is do we really need this master page feature in Silverlight. If there is an advantage to use the master page features in ASP.NET, then I can’t see a reason why Silverlight can’t take advantage of this as well. This article will demonstrate how to build a traditional master page style application in Silverlight.
  • Show Data in WPF DataGrid using DataSet data templateOct 26, 2009. This article will demonstrates how to show data in wpf datagrid using dataset data template.
  • .Net Batch Job TemplateDec 07, 2009. This article shows how to create a reusable batch job template.
  • Working with Data in ASP.NET 2.0: Master Pages and Site NavigationFeb 25, 2010. ASP.NET 2.0 introduces two new features that greatly simplify implementing both a site wide page layout and navigation scheme: master pages and site navigation. Master pages allow for developers to create a site wide template with designated editable regions.
  • Dynamically creating bound and template columns in GridView using ASP.NetMay 03, 2010. Here in this article I will explain how one can develop or implement runtime dynamically create bound column as well as template column of a GridView control and also how to bind data into the dynamically created GridView.
  • Customizing Alert Templates in SharePoint Foundation 2010May 07, 2010. In this article we will see how to customize alert templates in SharePoint Foundation 2010.
  • UriTemplate Class in WCF REST Service: Part IJun 03, 2010. This article will give explanation about UriTemplate class in WCF REST Service. We will see how UriTemplate class helps us to construct the URI for the methods.
  • Using an ASP.Net Master Page with theme and CSSJul 27, 2010. Using an ASP.Net master page with a theme and CSS can be tricky. In this article, we’ll cover the basics. In this article, we’ll cover the basics. Then we’ll add stylesheets for printing and for Internet Explorer only.
  • How-to store FastReport.NET report templates in databaseAug 25, 2010. Some applications require the storing of report templates in a database. This simplifies template support - all reports are stored in one place, and allows to differentiate the access rights to different templates. I noted only one shortcoming of this technique - slight complication of the code in the client application.
  • Add a Data Connection to SharePoint List or Library in InfoPath Form TemplateSep 07, 2010. This article will help you bind the SP list or library in InfoPath. Below article contains only few basic steps which will help you to display the sp fields in InfoPath Form template.
  • Publish an InfoPath form template as SharePoint site content typeSep 07, 2010. This is how to publish an InfoPath form template as a new SharePoint site content type.
  • How to Display SharePoint Blog Post ArchivesSep 08, 2010. In this article I am showing how to make a share point blog post archive using share point calculated column and Data view. It will be helpful with default SharePoint blog template.
  • MSChart - Drilldown Charts: Part IIISep 21, 2010. This part of article will helps in doing drilldown on single Chart only. There is no change in logic, only rearrangement of code lines and also a button introduced to plot master chart again back from .xml file after drilldown.
  • Using NVelocity and WithClass to Generate C# CodeSep 22, 2010. NVelocity is a powerful template engine for rendering text. When NVelocity is used in conjunction with a UML tool such as WithClass, you can generate code from diagrams you create with the tool. This article steps you through generating C# classes using the NVelocity engine inside of WithClass.
  • CSS Menu in a .Net Master PageOct 06, 2010. In this article you will learn how to use a CSS menu in a .Net Master Page.
  • Master pages in Silverlight 4Oct 07, 2010. In this article, I try to implement ASP.NET master pages concept using Silverlight 4 and Visual Studio 2010.
  • How to use Facebook Share functionality in ASP.NETOct 18, 2010. This article demonstrates how to use Facebook share button functionality with master page or without master page in asp.net.
  • Change Image in Silverlight using Control TemplateOct 20, 2010. This article will demonstrate how to change image using ControlTemplate in Silverlight 4.
  • Using Quota Template to manage site collection storage limits (Power Shell, SharePoint 2010)Oct 22, 2010. In this article I am showing you how to set limit for SharePoint 2010 site collection using Quota Template. Here I am using Power Shell to define Quota Template.
  • Using Quota Template to manage site collection storage limits through Central AdministrationOct 22, 2010. In this article I showing you how t o create a managed path using SharePoint Central Administration.
  • Chapter 1: From 2003 to 2010: Business Logic and DataNov 22, 2010. After reading this chapter, you will be able to: Use the Entity Framework (EF) to build a data access layer using an existing database or with the Model-First approach Generate entity types from the Entity Data Model (EDM) Designer using the ADO.NET Entity Framework POCO templates Get data from Web services Learn about data caching using the Microsoft Windows Server AppFabric (formerly known by the codename “Velocity”)
  • Chapter 5: From 2005 to 2010: Business Logic and DataNov 30, 2010. After reading this chapter, you will be able to Use the Entity Framework (EF) to build a data access layer using an existing database or with the Model-First approach .Generate entity types from the Entity Data Model (EDM) Designer using the ADO.NET Entity Framework POCO templates. Get data from Web services Learn about data caching using the Microsoft Windows Server AppFabric (formerly known by the codename “Velocity”)
  • Create Document Templates for Document LibrariesDec 09, 2010. In SharePoint we have a good feature that helps protecting source for document templates.
  • 3-Column CSS LayoutDec 14, 2010. 3-Column CSS Layout, 3-Column CSS Template
  • SharePoint 2010 Site Templates: Create, Save and UseDec 15, 2010. SharePoint site is the key place to bring together all content and activities associated with a particular process, project or group. And there are situations when these processes or projects are regularly repeated within an organization. So to ensure consistency and facilitate continuous improvement a site template can be helpful and time saving.
  • Creating Installable InfoPath form Template and deploying in SharePointDec 19, 2010. In this article I will explain how can we create and publish browser enabled InfoPath form in SharePoint site.
  • Creating, Hosting and Consuming WCF Service with WCF Service Library Project TemplateDec 27, 2010. In this article we will walk through creation of a WCF Service by choosing the WCF Service Library project template.
  • WPF DataGrid StyleJan 01, 2011. The DataGrid control provides a flexible way to display a collection of data in rows and columns. The DataGrid includes built-in column types and a template column for hosting custom content. The built-in row type includes a drop-down details section that you can use to display additional content below the cell values.
  • Sharing and Reusing Styles and Templates in Windows Phone 7Jan 03, 2011. The new Style can add to those Setter objects or override them. However, it is not possible to derive from a ControlTemplate. There’s no way to reference an existing ControlTemplate and specify an additional piece of the visual tree, or a replacement for part of the visual tree.
  • Work with Template, Visual Tree and Visual State Manager in Windows Phone 7Jan 03, 2011. This article will demonstrate how to write templates by hand so you’ll be in a better position to understand Expression Blend output if you later decide to go that route.
  • Chapter 7: Master Data ServicesJan 12, 2011. Microsoft SQL Server 2008 R2 Master Data Services (MDS) is another new technology in the SQL Server family and is based on software from Microsoft’s acquisition of Stratature in 2007.
  • Chapter 8: From 2008 to 2010: Business Logic and DataJan 20, 2011. After reading this chapter, you will be able to Use the Entity Framework (EF) to build a data access layer using an existing database or with the Model First approach. Generate entity types from the Entity Data Model (EDM) Designer using the ADO.NET Entity Framework POCO templates Learn about data caching using the Microsoft Windows Server AppFabric (formerly known by the codename “Velocity”)
  • How to use iTextSharp .Net Library to insert text to PDF TemplatesJan 23, 2011. In this article you will learn how to use iTextSharp .Net Library to insert text to PDF Templates.
  • Creating a custom Master page in SharePoint 2010 using Visual Studio 2010Jan 24, 2011. In this article we will be seeing how to create a custom master page in SharePoint 2010 using Visual Studio 2010.
  • Behavioral Design Pattern for .NET: Part 2Feb 18, 2011. Behavioral Design patterns are the patterns for .Net in which there is a way through which we can pass the request between the chain of objects, or we can say that it defines the manner to communicate between classes and object.
  • How to set a custom master page to the site in SharePoint 2010Feb 28, 2011. In this article we will be seeing how to set the custom master page to the site in SharePoint 2010 using powershell and using console application.
  • How to set a master page to the site in SharePoint 2010 using powershellMar 01, 2011. In this article we will be seeing how to set the master page to the site in SharePoint 2010 using powershell and using console application.
  • Creating a "Hello world" application in AzureMar 01, 2011. In this article we will see how to create a "Hello World!!!" application in Azure using .Net. I used Visual Studio 2010 along with the Azure SDK 1.3 installed. Start Visual Studio and select a new project. In the cloud template select Windows Azure Cloud Service.
  • Differences between site definition and site templatesMar 07, 2011. In this article I am describing the differences between site definition and site template. Many people have asked me in which situation should we go with site definition and in which should we go with site template. All these questions will be answered in this article.
  • Powershell script to Approve Masterpages and PagelayoutsMar 16, 2011. Through this article, it will be easy to approve master pages and pagelayouts that you are going to upload. It will save the time of approving each item.
  • Step Towards Windows Communication Foundation: Part 3Mar 22, 2011. In this article we will see how to develop our first WCF service without using a Visual Studio template. Follow the steps given.

About Master-Templates

NA
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!
Download Free eBooks