Databinding: Web Forms vs. Windows Forms

In Windows Forms, all data binding done by the designer is saved as code in the choosen language: C# or VB.NET:

 

//

// dataGrid1

//

this.dataGrid1.DataMember = "Customers";

this.dataGrid1.DataSource = this.dataSet11;

 

On Web Forms, it’s somewhat different, because when binding a DataGrid to a DataTable via designer, the binding isn’t saved as code; instead it’s saved as markup:

 

<asp:DataGrid id=DataGrid1 style="Z-INDEX: 101; LEFT: 16px; POSITION: absolute; TOP: 32px" runat="server" DataSource="<%# dataSet11 %>" DataKeyField="CustomerID" DataMember="Customers" AutoGenerateColumns="False" EnableViewState="False">

      // Column definition

</asp:DataGrid>

 

Brazilian zip code Web Service

From Carlos Loth’s blog: Brazilian’s postal service publishes a web service to allow queries from Microsoft Office 2003.
It works like magic on Word.
I tried a quick and dirty approach to make it work from within a .NET application without success, but soon someone will figure out how to do it.
In my opinion, the postal service should open the zip code database since it’s a government owned company. For that reason it should publish the database as a web service instead of charging us for a CD-ROM subscription.

Another MCP certification

Just before TTT on last Friday (08/26/05), I passed 70-320 with a score of 952 out a total of 1000.
With this one they are already three certifications:

  • 70–306 Developing and Implementing Windows®-based Applications with Microsoft Visual Basic .NET and Microsoft Visual Studio .NET
  • 70–316 Developing and Implementing Windows-based Applications with Microsoft Visual C#; .NET and Microsoft Visual Studio .NET
  • 70–320 Developing XML Web Services and Server Components with Microsoft Visual C# .NET and the Microsoft .NET Framework

It took me about six months of study, but the exam was much easier than I thought it would be.
Now I only have to try the ASP.NET (70-315) exam to achieve MCAD. Unfortunately MCAD is going deprecated soon.

New article on Fórum Access magazine

Issue 68 of Fórum Access magazine just got published with another article written by me: “DataView with Microsoft Access-like search features”.
On the article I extend the DataView’s search features so they look somewhat like the features exposed by Microsoft Access’ Find dialog.
Unfortunately the magazine is not sold in newsstands. It’s only available for subscribers.