Home > Programming > ASP.NET Programming



Reading Web.config Values in ASP.NET 2.0

Sort Desciption:

... Values in ASP.NET 2 ... of these fundamental changes is with the Web.config file. The Web.config file is of course responsible for laying out the entire configuration of your ASP.NET ...



Content Inside:

Reading Web.config Values in ASP.NET 2.0 Kevin Koch Reading Web.config Values in ASP.NET 2.0 When working with the new .NET 2.0 framework there are a lot of new features, classes, and methodologies available to developers. Some things are brand new, some things are advancements upon existing features in the .NET 1.x framework. Sometimes when changing parts of very fundamental pieces of an application, a lot of confusion is generated. Developers wonder which is the correct method, or recommended best practice for using a new piece of functionality. With the new .NET 2.0 framework, one of these fundamental changes is with the Web.config file. The Web.config file is of course responsible for laying out the entire configuration of your ASP.NET application. It controls everything from authentication to your SQL connection strings, security, page access, even HTTP settings for IIS. Because the Web.config file plays such a large part in an application it can be confusing to know where to start especially if you are familiar with .NET 1.x. Finding feature parity is probably the most difficult part about migrating from one technology to another. The goal of this tutorial is not to teach all the different features available in the Web.config but rather to demonstrate how to use 3 common features used in almost any ASP.NET applications. The first is how to read connection strings from the Web.config file. The second is how to read name/value application setting variables, and finally, a new method available in . NET 2.0 whereby you can create a custom class to represent custom settings defined in the Web.config file so you can programmatically reference specific settings and values. Note: Visual Studio 2005 running ASP.NET 2.0 is required for this tutorial. Both VB and C# code samples will be provided Setting Up First we need an ASP.NET project to work with so begin by starting Visual Studio 2005 and ...

Source: dmxzone.com


add to Google Reader add to Google Bookmark add to bloglines add to newsgator add to FURL add to digg add to webnews add to Netscape add to Yahoo MyWeb add to spurl.net add to diigo Bookmark newsvine Bookmark del.icio.us Bookmark @ SIMPIFY Bookmark MISTER WONG Bookmark Linkarena Bookmark icio.de Bookmark oneview Bookmark folkd.com Bookmark yigg.de Bookmark reddit Bookmark StumbleUpon Bookmark Slashdot Bookmark blinklist Bookmark technorati add to blogmarks add to blinkbits add to ma.gnolia add to smarking.com add to netvouz add to co.mments add to Connotea add to de.lirio.us

 

Related Files

Beginning ASP.NET 2.0 ECommerce in C# 2005

Filed under: Programming and ASP.NET Programming
Beginning ASP.NET 2.0. ECommerce in C# 2005. From Novice to Professional. . Cristian Darie and Karli Watson. DarieWatson_4681Front.fm Page i ...

Building an ASP.NET Website

Filed under: Programming and ASP.NET Programming
In this book we are going to build a contentbased ASP.NET website. This website will consist of a. number of modules which will all fit together to ...

programming asp net third edition

Filed under: Programming and ASP.NET Programming
tions) in how your ASP.NET application interacts with underlying. data. The ADO. ... The data source controls included with the ASP.NET include: ...

ASP.NET Forms Authentication Best Practices for Software Developers

Filed under: Programming and ASP.NET Programming
ASP.NET does an excellent job of providing out of the box support for multiple ..... In ASP.NET 2.0 the forms authentication cookie if created through the ...

Moving to ASP.NET: Web Development with VB .NET

Filed under: Programming and ASP.NET Programming
ASP.NET. Chapter 10 discusses exactly how this differentiation is achieved .... aWeb Application is pretty central to ASP.NET and Web development in general ...