Alberto Poblacion


Alberto has been working for the computer industry for more than 27 years, most of them as a software developer. He has held just about every possible position in software development up to and including being the CSA for a small ISV. Currently he works as a freelance developer and consultant, as well as providing training as a Microsoft Certified Trainer, mostly on the field of software development under the .NET platform. He's a Microsoft MVP in C#.

Author Archive | Alberto Poblacion

On MVC Models and ViewModels

This article is basically a rant about the confusion that frequently arises between the Data Model and the MVC Model in MVC applications. The following is just my own opinion and it has not been submitted for approval to any experts who may or may not have a completely different opinion. When I say “MVC”, […]

Continue Reading

Manipulating images in web applications

Recently, I came across the following question in a .Net application development forum: “Does anyone know how to put an image inside a frame or a rectangle? I don’t need them to look good; I just need a frame with a white background. The purpose is for some images that I’m adding to a website […]

Continue Reading

Installing SQL Server 2012 on Virtual PC

When I considered installing SQL Server 2012 to learn its new features and start using it in new software developments, I first thought about installing it on the same laptop that I normally work with. But, before doing so, I surfed the Internet for comments on any incompatibility with previous versions. Unfortunately, it does seem […]

Continue Reading

Creative use of Serialization in .Net

Serialization is mainly used to persist the state of objects or to transmit them across a network. Since most line-of-business applications do not need to perform directly these operations, serialization is largely ignored in this context. However, there are some relatively common operations that can be simplified by means of serialization. In this post, I […]

Continue Reading

Storing XML in SQL Server

Usually, the design of our line-of-business applications contains lots and lots of entities that we abstract as classes in our code to represent the various real-world objects with which the application needs to deal. For example, the following fragment of code represents a hypothetical class “Employee”, which encapsulates various pieces of data related to the […]

Continue Reading

Using XML serialization to read and write XML files that conform to a schema

An XML schema is a description of a type of XML document, typically expressed in terms of constraints on the structure and content of the documents, above and beyond the basic syntactical constraints imposed by XML itself. These constraints are generally expressed using some combination of rules governing the order of elements, predicates that must […]

Continue Reading

Cloning objects by means of serialization

Copying Reference-types You are probably already familiar with the concept of value-types versus reference-types. As a reminder, let’s summarize briefly the characteristics of each set of types: Value types Contain their data directly Each variable has its own copy of the data Copying one variable into another performs a copy of the data Operations on […]

Continue Reading

Using serialization to save the state of a form

A frequent need when developing Windows Forms applications is to save the data that you input into a form so that the next time you open the form it is already populated with the same initial selections. For instance, imagine a form where you enter parameters for emitting a specific report. The form lets you […]

Continue Reading

Introduction to Serialization in the .Net Framework

Serialization is the process of converting a data structure or object into a sequence of bits. The purpose is usually to store those bits in a file or other storage location, or to transmit them across a network connection. When the bits are read later, at the same or another computer, they can be used to […]

Continue Reading

Tips when using ADO.NET to access data in a SQL Server database

Here are collection of articles from campusMVP.Net for those developers that are quite familiar with ADO.NET. Basic techniques such as using typed or untyped DataSets, filling them by means of DataAdapters, or reading data by means of a DataReader are continually used in the data layer of business applications. Of course, there are plenty of […]

Continue Reading