Category Archives: asp.net

Configuration file attributes

The configSource attribute in .config files can be used in a section to source other configuration files. This was introduced in ASP.Net 2.0 and also handy in WCF configuration.<configuration> <system.serviceModel> <services configSource=MySvc.config > </services></configuration>

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> asp.net, SOA, WCF | Comments Off on Configuration file attributes

ELMAH

ELMAH ( “Error Logging Modules and Handlers” ) is a useful error logging pluggable tool for ASP.NET web applications. It can be configured to log nearly all unhandled exceptions and the log can be even remotely viewed.

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> asp.net, Browsers, Tools | Comments Off on ELMAH

Mix 09 – Day 1

Mix09, day1 keynote speaker was Bill Buxton. In his talk, he drew a distinction between Experience Design vs. Interface Design by tracing the history of design over the years. How developers tend to focus on Interface Design when they should begin with Experience Design. He was followed by Scot Guthrie (VP .NET Division) who demonstrated […]

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> asp.net, Tech Events | Comments Off on Mix 09 – Day 1

Asp.net applications – data access in a database agnostic data way

string databaseConnectionString =ConfigurationManager.ConnectionStrings [“DatabaseConnectionString”].connectionString; string databaseProviderName = ConfigurationManager.ConnectionStrings [“DatabaseConnectionString”].ProviderName; DbProviderFactory databaseProvider = DbProviderFactories.GetFactory(databaseProviderName); using (DbConnection dbConn = provider.CreateConnection()){ dbConn.ConnectionString = connectionString using (DbCommand command = dbConn.CreateCommand()) { dbConn.Open(); using (DbDataReader dr = command.ExecuteReader()) { // Do Something… } }}

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> asp.net | Comments Off on Asp.net applications – data access in a database agnostic data way

Beginning AJAX with ASP.NET – book review

Recently, had a chance to review a book on AJAX called ‘Beginning AJAX with ASP.NET’ by Wally McClure, Scott Cate, Paul Glavich and Craig ShoeMaker. Wally was kind enough to send me the book. The entire review is posted on the local user group web site, however here’s an excerpt. This is a good book […]

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> .NET, AJAX, asp.net, Book Review | Comments Off on Beginning AJAX with ASP.NET – book review

Content based on browser agent strings

If you are using the “user-agent” header to detect version of the mobile browser, then the IE Mobile team is announcing some upcoming changes to the header. Now to detect the new browsers just look for the string “IEMobile” as a part of the ‘user-agent’ header.

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> asp.net, Browsers, Web | Comments Off on Content based on browser agent strings

ASP.NET 2.0 navigation controls

The ASP.NET 2.0 navigation controls are neat and easy to use. The controls ‘SiteMapPath’, ‘TreeView’ and ‘Menu’ all use the same asp.net navigation API and can be tied to an XML datasource. The entire web site hierarchy(sitemap) can be placed in an XML file called web.sitemap in the application’s root directory. There is a single […]

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> .NET, asp.net, Web | Comments Off on ASP.NET 2.0 navigation controls

asp.net 2.0

If you cannot browse to an .aspx page under IIS 6.0 be sure to – check in IIS if “Web Service Extensions” is allowed and not prohibited – run aspnet_regiis -i IIS 6.0 disable ASP.net support by default.

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> .NET, asp.net, Web | Comments Off on asp.net 2.0