C# Corner

Resources  
  • Creating a Windows Service in C#Jan 23, 2001. Windows Services is a new name for NT Services in .NET. This tutorial steps you through creating a Windows Service and how to install and start it.
  • Mobile Fun with XMLMay 24, 2001. Here is something really wonderful in Mobile field .This example is for authenticating the Mobile Users against his settings stored in XML file. This is really good where all the ease of XML is applied. Function open the XML file and particular node data validate it against user inputs and do the specified.
  • A Better Notepad using C#Jul 30, 2001. We can use windows registry for saving default setting of notepad. We can used notepad in C# easily.
  • XP, Component Services and .NETDec 13, 2001. First of all, COM+ does revolutionize COM; it is not only a superior new version of the COM programming model it is also a new platform to design and develop components. In addition, COM+ Services in XP does have some differences from Windows 2000; also XP and COM+ 1.5 offer a richer set of services than was available in COM+ 1.0. This article will describe the basic component services on the XP.
  • Web/WAP Calender form Harrison LogicFeb 11, 2002. This application provides an updateable web-based calendar that can be viewed from both the Web and through a Mobile device, such as a cellular phone.
  • Using XML Based Configuration File in Windows Form ApplicationsApr 15, 2002. Often when building an application, a programmer wants to be able to change application settings without having to recompile the application.
  • Configuring Applications in .NETJun 06, 2002. The .Net Framework provides a very convenient and flexible way to configure applications at run time.
  • Personalizing Mobile Web ApplicationsSep 16, 2002. In this example, we will personalize the settings for a mobile web application based on the user logged into the site.
  • Customizing Default Project SettingSep 26, 2002. "How do I change the default exe name of my project?". I received this question in an email.
  • Daleks in .NETDec 11, 2002. The other night my girlfriend dragged me down to the NYC Public Library claiming that they had a huge Science Fiction movie section. Admittedly my taste in movies and my wife's taste in movies can vary slightly, however, I was willing to take a chance, given that rentals at the library are free as opposed to $4 at the local video store.
  • Cryptography in Microsoft.NET Part I: EncryptionDec 12, 2002. Microsoft .NET has pre-built solutions to all of these in each application domain, viz., ASP. NET, Web Services, Serviced Component etc. It enables building secured application by simple configuration as in ASP.NET to full fledged programmable security as in code access security and Cryptography.
  • Persist ListView Settings with SerializationDec 13, 2002. In this article, I'll show you how to persist the column order and width settings by using Serialization, binary serialization to be more specific. And you won't believe how easy it is.
  • Automating the Process of Getting Latest Files from VSSJan 22, 2003. In this article, I will show you how to write an automated process of taking VSS backup. Initially, this application was written with some hard coded settings such as user name, password. and VSS path.
  • 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.
  • Dynamically Setting Properties of a Class from a DatabaseMay 12, 2003. This example demonstrates a powerful feature of Reflection that will allow you to dynamically set the values of a class.
  • User Controls In Internet ExplorerAug 13, 2003. ASP programmers have long been using ActiveX controls as part of their client-side programming techniques, but now we are able to easily render Windows User Controls (almost Windows Forms, but not quite) into our HTML.
  • Creating Word Find Pzzules in C# and GDI+Sep 30, 2003. Perusing the newsstands in New York you'll find newspapers, TV-Guides, magazines, and even books. In the magazine section you'll often find crosswords and books containing the puzzles you'll see in figure 1. The books contain pages and pages of puzzles with hidden words contained in the matrix of letters in which you can spend time going blind trying to find.
  • Building Dynamic Service in C#Oct 31, 2003. This is a service that will run an application, and can be used over an over without hard coding any information.
  • How to Create and Use Configuration FilesNov 24, 2003. Here an article for beginners that shows how to create and use configuration files.
  • Deployment: Customizing your .NET deployment ProjectsDec 29, 2003. The fact of the matter is that Visual Studio.NET already contains everything you need to create a rich setup experience for your users. In this article we are going to show you two ways to add a readme dialog to your application, the easy way and the hard way. The easy way requires absolutely no coding. The hard way requires coding and actually allows you to add complex custom features to your application.
  • Using Web.Config in ASP.NET and ASPJan 09, 2004. Web.config acts as a central location for storing the information to be accessed by web pages.
  • Multilingual Applications in .NET - Part IMar 24, 2004. This article provides a basic understanding of various methods of developing multilingual applications in .NET.
  • Image Transformation in C# with GDI+ Apr 14, 2004. Image transformation is exactly the same as any other transformation process. In this section we will see how to rotate, scale, translate, reflect, and shear images.
  • Setting Ink Overlay Properties in Tablet PCJun 02, 2004. In this article, I will write an application that allows us to set the Ink Overlay properties dynamically based on the values selected by the user.
  • Microsoft Enterprise Instrumentation Framework(EIF) - Quick GuideJul 02, 2004. The Microsoft EIF is a bunch of assemblies for .Net that make your life easy when it comes to instrumenting your program, by this I mean tracing facilities, writing to the event log, and many other things.
  • TFTP application written in C#Jul 07, 2004. This application is the beginning of a program I want to use to download switch/router configuration files via TFTP and archive them. This application merely asks for an IP address and a filename then it receives the file via TFTP and displays it in a RichTextBox.
  • HTTP Handlers in ASP.NETAug 24, 2004. The low level Request and Response API to service incoming HTTP requests are HTTP Handlers in ASP.NET. All handlers implement the IHttpHandler interface, which is located in the System.Web namespace. Handlers are somewhat analogous to Internet Server Application Programming Interface (ISAPI) extensions.
  • Download Files using HTTP and Proxy Server in C#Sep 21, 2004. This article explains how to pass proxy server network credentials when downloading files using HTTP.
  • Storing Images into a DatabaseOct 18, 2004. In order to provide your application with cool pictures you can employ two techniques (at least). One of them is that you can save the pictures in a folder and store the path to each one in a database or configuration file. The other one is to store the entire file into a database, along with its file name.
  • Passing Values between User Controls and ASPX PageJan 20, 2005. This article is for beginners who are learning. NET. This will be really helpful for them. Beginners will be wondered how to pass values between User Controls and ASPX page .In this article I have listed some of the ways through which you can access and set the User control values in an ASPX page.
  • Web Based Chat ApplicationMar 15, 2005. The article explains about devloping a chat Solution in ASP.Net / C# which is differnt than any of the available solutions and works under any firewall and browser settings.
  • Enterprise Library 1.0Apr 02, 2005. Enterprise Library is a set of tested, reusable application blocks that address common problems developers face when developing enterprise-based applications.
  • Creating a Dynamic Configuration Dialog in C# and .NETJul 10, 2005. This article will show you how to create a configuration dialog that builds itself from the existing application configuration name-value pairs contained in the appSettings of the app.config file.
  • ASP.NET Session StateSep 21, 2005. Session state is nothing more than memory in the shape of a dictionary or hash table, e.g. key-value pairs, which can be set and read for the duration of a user's session.
  • Manage and Administer ASP.NET Web Sites in Visual Studio 2005Nov 16, 2005. ASP.NET Configuration Wizard is a new feature available in Visual Studio 2005, which takes care ASP.NET Web Application configuration and deployment problems and allows developers to set Web application settings using a visual interface.
  • Security Setting for ExcelJan 04, 2006. To run the excel report, security settings are required for excel application because while working with the excel application we are going to use some of the classes for manipulating the data inside the file. This article shows how to grant access or rights to those files.
  • Visual Guard for .NETJan 19, 2006. Novalys announces Visual Guard, which is aimed at setting up user’s profile and permissions for .net application (who is allowed to do what?). The tool easily integrates to any .net application and makes rights/permissions management easier thanks to its administrating console.
  • How to Read and Write System Registry Keys using C# (VS.Net 2005)Feb 09, 2006. Most of the time while working with the Enterprise Application will need to store the user preferences inside the windows system registry. In a general term Windows Registry is the database that holds all the settings Windows needs to function.
  • Code Access Security using C# in VS.NET 2005Feb 17, 2006. This article will focus on the definition and configuration of the Code Access Security Policy.
  • Deploying ASP.NET 2 Web Site to Production Server: Part IIApr 10, 2006. On the first part we discussed in detail how to move our database which contains the membership tables from the default aspnetdb Database to our database. On this part we will show how to change the default settings of asp.net membership and role providers to read from tables which stored on our database.
  • Application Scheduler Service Using C#.Net And XMLMay 29, 2006. This is an application scheduler that is implemented as a Windows Service, similar to the Windows Task Scheduler - but simple, as it has fewer configuration options and it uses XML to store and retrieve data.
  • Tip: How to use Multiple Page Headers in Crystal Reports?Jul 21, 2006. Recently, I came across a problem in Crystal Reports. I wanted to display a separate page header on the first page of the report than the rest of the page.
  • Using Custom Tasks in MSBuild to modify XML Configuration Files on the FlyJul 28, 2006. This article shows you how to use MSBuild to build your project and how to create a custom task that will allow you to modify sections of your XML configuration files.
  • Cross Page Postback in ASP.Net 2.0Aug 11, 2006. In ASP.Net 2.0, cross-page post backs allow posting to a different web page, resulting in more intuitive, structured and maintainable code. In this article, we will explore the various options and settings for the cross page postback mechanism.
  • Setting Enum's Through ReflectionSep 25, 2006. This article show to solve the problem of how to set an enum type in a dynamically loaded DLL.
  • Atlas: Floating Server Elements in ASP.Net 2.0Sep 26, 2006. In this article, we will see how easily Atlas allows setting up a server element as a floating element, which the end users of the web page can drag to any location in the web page.
  • Encrypting Connection Strings in ASP.Net 2.0Oct 05, 2006. This article describes how to encrypt the connection strings section in ASP.Net 2.0 web.config files and demonstrates the transperancy of using encrypted connection strings in your web application.
  • User Confirmation before Deleting Items in ASP.Net 2.0Oct 12, 2006. This article describes how ASP.Net 2.0 allows setting client-side functions for Button controls through the use of the OnClientClick property and additionally, the event can be handled on server-side depending on the user response.
  • Generating a Report from Multiple Data Sources in Crystal ReportsOct 23, 2006. If you have to create a report in Crystal Reports from multiple data sources or provide multiple views of the data, you may find sticky situations because CR does not allow you to have multiple Detail sections in a single report.
  • XAML TextBoxApr 10, 2007. XAML <TextBox /> element represents the XAML TextBox control. This article discusses how to create a TextBox and set its various properties such as background and foreground colors, setting size and positions, fonts, wrapping, scrolling, and input validations.
  • Edit and encrypt Web.Config sections using C# 2.0May 07, 2007. An article to illustrate editing and encrypting of sections of Web.Config file programmatically.
  • C# and VB code mixed together in ASP.NET 2.0Jun 14, 2007. C# and VB.NET code classes can be mixed together in a ASP.NET 2.0. Such mixing of classes in different languages is not allowed with default settings. This article explains how to achieve this.
  • Display Videos in ASP.NET 2.0 Aug 29, 2007. This article shall describe the construction of a custom control used to play video on an ASP.NET web page. The control is based upon the Windows Media Player active X control; with it you can add canned or live video to a web page by setting a property or two at design time, or from the ASP.NET page itself.
  • 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.
  • Configuration Sections-Create a customized section using ConfigurationSection class: Part IIApr 10, 2008. This article extends the custom configuration section concept.
  • 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 customized section using IConfigurationSectionHandler Interface: Part IIIApr 16, 2008. In this part III article we will try to achieve, step by step, the same goal as in the Part II article, but using another tool, namely, the IConfigurationSectionHandler interface.
  • Add and handle application settings in the configuration file: Part IIApr 16, 2008. This article tells you how to add connection string using the configuration file itself.
  • Add and handle connection strings in an application configuration file: Part IApr 17, 2008. There are two ways to save data and parameters. In this case we save application parameters like information entered by the user during the installation process.
  • Get the machine configuration file information using ConfigurationManager classApr 17, 2008. This article tells you how to retrive information of configuration file which is applied to the entire application.
  • 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.
  • Save the application settings for subsequents sessionsApr 19, 2008. It is very important to save the application settings established by the user in the current session, in order to avoid the application pattern establishment for each time a new session is opened.
  • Save the application settings using VS2005 for subsequent application sessionsApr 21, 2008. It is practical to save some usefuls data that can be kept in a separate file when the application is out of the service.
  • Encrypt and Decrypt Sensitive Metadata Within Your Config file Jun 18, 2008. In a certain cases, metadata embedded within your configuration file is sensitive. In fact, imagine that you develop an application that uses a data base as data source; all information about this data base is located in the configuration file. What if a hacker success to log into your configuration files and obtains the connection string and other metadata about your data base??
  • Introduction to Unit Testing Framework of VS 2008: Part IIAug 14, 2008. This article gives an introduction to creation and configuration of Ordered Tests of VS 2008 Testing Framework.
  • Introduction to Unit Testing Framework of VS 2008 - Part IIIAug 19, 2008. This article gives an introduction to creation of Test List and configuration of Test Project of VS 2008 Testing Framework.
  • Checking previous instance (single instance) of an C# windows application, also setting MDI child form to a MDI parentSep 04, 2008. In this article I will describe how to check previous instance (single instance) of an C# windows application and also whether a MDI child is set to a MDI parent
  • Web.config file configures fundamental settingsSep 10, 2008. Every web application in ASP.NET includes a web.config file that configures fundamental settings from error message to security.
  • Object and Collection Initializers Feature in C# 3.0 Oct 20, 2008. Object Initialization Expressions allows you to initialize an object without invoking the constructor and setting its properties.
  • Design pattern -Inversion of control and Dependency injectionNov 04, 2008. In this section we will discuss about how IOC and DI can help us build loosely coupled software architecture.
  • UML Interview Questions Part 1Nov 09, 2008. In this section will be cover Use case digrams,Class digrams,Composite digrams,Sequence digrams,Object digrams
  • Visual C# IDE Tips: Part IINov 11, 2008. This post explains the some more tips on using Visual C# IDE to enhance developer productivity.
  • The 3 Musketeers: Model, View and Controller using HTTPHandler – Part 1Dec 22, 2008. In this section, we will learn about the basics of MVC and then see how we can implement the same in ASP.NET using HttpHandlers.
  • (WPF) Windows Presentation Foundation - FAQJan 02, 2009. In this section we will make a quick walkthrough of WPF which will help you understand WPF instantly.
  • Caching FAQ's: Part IJan 22, 2009. In this section we will touch base on one of important concepts in .NET Caching.
  • UI Object Connector Implementation of Mediator Pattern Jan 30, 2009. When we consume business objects in UI, the logic can become pretty complex for activities like setting the business object value, getting the object value and setting the user interface from the object value. We can minimize the complexity of UI interaction with the business object using mediator pattern.
  • ASP.NET FAQ's: Part 2Feb 02, 2009. This is Part 2 of ASP.NET Interview Questions section in this also we will touch base on one of important concepts in ASP. NET.
  • Caching FAQ's: Part IIFeb 02, 2009. This is 2nd part of Caching FAQ's. In this section we will touch base on one of important concepts in .Net Caching.
  • Introduction to Enterprise Library: Part IVFeb 03, 2009. This article explains about Configuration based validation using Validation Application Block.
  • ADO.NET FAQ's: Part IFeb 12, 2009. This is the Part I of ADO.NET. In this section we will touch base on one of important concepts in ADO.NET.
  • ADO.NET FAQ's: Part IIFeb 13, 2009. This is the Part 2 of ADO.NET. In this section also we will touch base on one of important concepts in ADO.NET.
  • Dynamic validation according to logged in userFeb 18, 2009. Many times we want certain set of validation to fire for some user and certain set of validation to fire for some other user. In the section we will see how we can achieve the same using Microsoft enterprise validation blocks.
  • RFC Architecture for Finance Project (The Invoicing Project)Feb 26, 2009. RFC is an open source initiative for Finance projects. It has reusable components like invoicing, accounting and purchase modules. In this section we will discuss about the Invoicing section of the RFC architecture.
  • Continuous Integration with CruiseControl.netMar 07, 2009. Discusses the advantages of continuous integration going into some detail on automating unit tests and documentation. Includes example build files and configuration
  • Windows Presentation Foundation (WPF) Beginners FAQ Mar 13, 2009. In this article we will go through FAQ's from WPF section. We will start first with understanding why WPF..? and later we will create a small sample hello world project for WPF which will make us understand WPF much better.
  • Exception handling using Enterprise application block in 6 StepsMar 20, 2009. Exception handling is one of the most important tasks in any application. Many applications either do not handle applications or they handle it in an adhoc manner. In this section we will see how we can use the readymade exception handling block so that we do not need to code and build error handling routines from scratch.
  • Introduction to SLP Services ConfigurationMar 23, 2009. This article explains about adding products/feature sets followed by Code Protection Integration using SLP Online Services.
  • Setting Null Value in an Optional Non-identifying Relationship Using ComboxBoxMay 06, 2009. The most common relationship in any data model is the one-to-many non-identifying relationship. Non-identifying relationship implies weak dependency relationship between parent and child entities. There are two kinds of non-identifying relationships, including optional and mandatory. The necessity of the parent entity is "exactly one" and "zero or one" in the mandatory and optional non-identifying relationship respectively. One problem I’ve tackled in many of my enterprise application is the presentation of complex data relationship such as optional non-identifying relationship using data binding techniques in Windows Forms applications. In this article, I will illustrate how to face this problem.
  • 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.
  • Operation Overloading in WCFJun 28, 2009. This article will explain, What is Service Contract?,How to achieve Operation overloading in Service.,How to achieve operation overloading at client side.,It explained the entire concept with supporting code as well. ,This will explain in detail of all the aspect of method overloading and manually configuration at client side.
  • GridView Multicolumn sortingJul 09, 2009. GridView's built-in sorting can be enabled by setting a data source and AllowSorting property to true. Click on column header to sort based on the SortExpression specified in the Gridview column. However, Gridview does not support multi column sorting which is required in day to day application. So here is how I tried to create one:
  • LINQ FAQ for Newbie's Jul 13, 2009. In this section we will run through basics of LINQ and then see 5 basic LINQ queries which you will always need in your project for queries. While looking at the basics we will also try to learn what problem LINQ solves from the perspective of middle tier business objects.
  • ADO.NET using C#Jul 22, 2009. In this article I will explain you how to make a SQL database connection and show information in data grid.
  • LINQ FAQ Part3Aug 01, 2009. This is the third series in my LINQ FAQ series. In this series we will cover LINQ FAQ’s related to concurrency handling, compiled queries, CRUD implementation and mapping simple .NET classes with XML file configuration. I love to write articles in FAQ format for the only purpose that they are to the point and you can get to know more by reading less.
  • Changing Display Settings ProgrammaticallyAug 26, 2009. Learn how to change display settings (resolution, bits, rotation, etc.) via C# and Win32 API.
  • Windows Firewall setting for SharePoint Site Access in LANOct 10, 2009. Windows Firewall setting for SharePoint Site Access in LAN
  • .NET 4.0 FAQ: Part I - The DLROct 13, 2009. In this section we will look in to new features provided by .NET 4.0 framework. We have a glance on some important features, DLR, subsystems of DLR, dynamic object and expand objects.
  • Setting Focus of TextBox in Silverlight 3Oct 13, 2009. In this article we will see how we can set a focus for a TextBox.
  • Changing Screen Resolution Programmatically via DirectXOct 14, 2009. In this article, learn how to change display settings (resolution, bit count, etc.) via DirectX libraries.
  • Creating Data Adapters with the Data Adapter Configuration Wizard Oct 14, 2009. This article will help you in understanding Creating Data Adapters with the Data Adapter Configuration Wizard.

About Configuration-Section-settings

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