Building a Custom XML Configuration System for ASP.NET – Part 2
In the first part I wrote about building an XML configuration system for the ASP.NET based on the XML manipulation API offered in .NET 1.x, 2.0 and 3.0 and promised to rewrite this system in the second part with new XLinq API introduced in .NET 3.5. So here is that post!
The fundamental of the configuration system is same as the past: I define appropriate properties and fields and load the data into memory then cache them to improve the performance. The only difference is in the way that XML configuration file is parsed.
I rewrite the system by replacing some classes like XmlDocument, XmlNodeList, XmlNode, XmlAttributeCollection and XmlAttribute with new classes such as XDocument, XElement and XAttribute.
Continue Reading : No Comments : 08.28.08
Data Structures and Algorithms Book First Preview
I think it’s quite a long while since Granville Barnett and Luca Del Tongo started their work on writing a free book about data structures and algorithms based on modern programming languages.
You may know that I have a serious passion for practices and data structures and algorithms have been a very important interest for me. Due to this, I always kept an eye on Granville’s feed because he often has some cool stuff to share about data structures and algorithms. Today he finally announced the first draft of the book available for public download for free.
Of course, as Granville says, this first draft is not supposed to be very thorough but it was a good decision to publish something for the audience and reactive the project.
Continue Reading : 3 Comments : 08.27.08
Using DataPager and ListView Controls with a Custom Data Source in the ASP.NET
DataPager is a new server control in ASP.NET 3.5 that makes the data paging easier as a built-in feature. The necessity for a customizable data pager control has been a request by developers for some years and ASP.NET 3.5 comes with this solution.
Even though DataPager control is limited to be used with ListView server control and there are also some limitations in customizing its behavior but it’s still a great way to accomplish data paging in a short and easy way.
As many other data controls in the ASP.NET, you can use ListView with different data source controls. There isn’t any special point about this in general except that you may stick with using these DataPager and ListView controls in conjunction with a custom data source programmatically.
Continue Reading : 3 Comments : 08.25.08
My Military Service After Eighteen Months

Or it’s better to say: My Military Service Two Months Before the End!
Yes, I’m this close to the end of the hell! Regarding the official holidays and the number of days that I can take off, there shouldn’t be more than 25 working days remained of military service!
Tomorrow I’m going to start the 19th month and hopefully will finish it within the next six weeks to take the last three weeks off. This is just a plan but it’s subject to change!
Continue Reading : 5 Comments : 08.22.08
Visual Studio 2008 SDK 1.1
Finally after the official release of .NET Framework 3.5 and Visual Studio 2008 Service Pack 1, a few minutes ago Visual Studio Extensibility team announced the final version of Visual Studio 2008 SDK 1.1 that works based on Visual Studio 2008 Service Pack 1.
You can download the newest version of Visual Studio 2008 SDK from here.
Continue Reading : 3 Comments : 08.20.08
Building a Custom XML Configuration System for ASP.NET – Part 1
Having a powerful and extensible configuration system is a common facet of any application. Almost all the times this configuration system is based on XML files. In .NET world, there is a built-in mechanism for configuration management for application configuration files (App.Config or Web.Config) that lets you add some custom sections as you wish and work with them via a rich set of APIs.
But the problem is that this mechanism is limited and for some applications with more configuration prerequisites it can’t be very proper. So many of the real world professional .NET applications (especially ASP.NET web applications) have their own configuration system based on XML .config files. In such systems you parse XML data and retrieve whatever you want manually.
Continue Reading : 7 Comments : 08.20.08
WebResource.axd and Time Zone Issue
There are some issues that you don’t know about them until they stop you somewhere!
You would know that the most common and recommended way to ship script resources in a .NET library or ASP.NET application is via .axd files in order to embed your resources into an assembly and enable the ease of deployment and usage. Often there isn’t any problem with this scenario but today I faced with a weird issue when deployed an ASP.NET 3.5 site with a script resource.
This weird issue was that my application could work without any problem on local machine but when deployed to the production, it couldn’t load JavaScript resources.
Continue Reading : 3 Comments : 08.17.08
Waegis Released to Web
Today is a very busy day for me because I have to work on a few projects in parallel. One of my planned tasks for today was the final launch of Waegis and releasing it to web.
A few minutes ago I announced this on Waegis blog and officially released the site and service to web! Sweet!
Continue Reading : 4 Comments : 08.14.08
Our New Book – Beginning ASP.NET MVC
Yes, that is right! In this post I’m going to write about my newest book that I’m writing with Simone Chiaretta. A few seconds ago Simone wrote about this book on his blog.
Over the past a few months Simone and I have been working on a new project that is a book about ASP.NET MVC entitled Beginning ASP.NET MVC.
As you may remember from the past, I was writing an article series about building a simple blog engine with ASP.NET MVC and LINQ on ASP Alliance and Simone started his own series on DotNetSlackers. After a while I received an email from Simone asking about my interest in writing a book on this topic because of our similarities in ASP.NET MVC.
Continue Reading : 8 Comments : 08.13.08
.NET Framework 3.5 and Visual Studio 2008 Service Pack 1
It seems that the giant of software, Microsoft, is back to its track in post-Gates era!
After announcing the final version of SQL Server 2008 last week, now Microsoft announces the availability of final versions of .NET Framework 3.5 Service Pack 1 and Visual Studio 2008 Service Pack 1.
You can download the first service packs for .NET Framework 3.5 and Visual Studio 2008 from Microsoft downloads.
Continue Reading : 1 Comment : 08.11.08