November 2006 - Posts

Strongly Typed TableAdapters and DataTables

If you want to whip-up a quick data bound ASP.NET page using TableAdapters, then this article from Scott Guthrie is for you.

He shows step-by-step from creating a connection to the data source to building strongly typed data-adapters in just a few minutes; not to mention the half a dozen lines of code which is all that is required to build each of the following:

master details, filtering, sorting, paging, 2-way data-binding, editing, insertion, deletion, hierarchical data browsing, hierarchical drill-down, optimistic concurrency and so forth.


Obi Oberoi

Do you Call Yourself an Architect?

It's become almost fashionable to poke fun at that group of software engineers that call themselves "architects". 

Read this article by Ted Neward.


Obi Oberoi


XML Notepad 2007

In one of my recent projects, I needed to view/edit xml documents.  Strangely enough, Microsoft has launched a free download which it calls XML Notepad 2006.  A pretty nifty tool if you ask me... Below are some of the handy features it includes:
  • Tree View synchronized with Node Text View for quick editing of node names and values.
  • Incremental search (Ctrl+I) in both tree and text views, so as you type it navigates to matching nodes.
  • Cut/copy/paste with full namespace support.
  • Drag/drop support for easy manipulation of the tree, even across different instances of XML Notepad and from the file system.
  • Infinite undo/redo for all edit operations.
  • In place popup multi-line editing of large text node values.
  • Configurable fonts and colors via the options dialog.
  • Full find/replace dialog with support for regex and XPath.
  • Good performance on large XML documents, loading a 3mb document in about one second.
  • Instant XML schema validation while you edit with errors and warnings shown in the task list window.
  • Intellisense based on expected elements and attributes and enumerated simple type values.
  • Support for custom editors for date, dateTime and time datatypes and other types like color.
  • Handy nudge tool bar buttons for quick movement of nodes up and down the tree.
  • Inplace HTML viewer for processing xml-stylesheet processing instructions.
  • Built-in XML Diff tool.


Obi Oberoi


Microsoft.VisualBasic.dll - To use or Not use

I came across an article, which highlights the merits and de-merits of the usage of Microsoft.VisualBasic.dll from VS.NET.  See below.

One thing that I'd like to add though is that after you successfully deploy the web project files over to the hosting service provider either by xcopy or using the web publish option in Visual Studio 2005 (if using VB.Net), if you see an http 404 error (page not found), it could be that the culprit is Microsoft.VisualBasic.dll.  In my case it was; and to overcome this problem, I had to manually copy Microsoft.VisualBasic.dll from my machine to the bin folder of the host using the ftp tool.  And it worked after that.:


Obi Oberoi



Method Invisible even after adding reference to the class library

It drew me crazy for several minutes trying to figure out why I couldn't access a method from a web UI that I wrote in the Business Access Layer class.

My first guess was that maybe I forgot to compile the project class. WRONG!

Second guess was that maybe I should re-add a reference after compiling the above, WRONG!

Third guess was that maybe the MSIL code (VB.Net to C# refernece got out of wack), WRONG!

When nothing seemed to work, I noticed that the ASP.NET development server was still running in the background.  Well, well, this was my problem...

I immediately shut down the development server and voila! I could now see the newly created method just fine through intellisense.

Just thought, I'd share my experience with you all.


Obi Oberoi