VB.NET Version of the Contact Manager Application Now Available

It's finally here: the VB.NET version of the demo application from my article series on N-Layer Design using ASP.NET 3.5.

You asked for it, and now it's here: the VB.NET version of the Contact Manager Application that I use as a demo application in my article series on N-Layer design.

All credits go to Sven Huijbrechts from ClearMedia bvba as he did 99.9% of the translation. Unfortunately, he ran out of time, so I fixed the last few remaining issues just a few minutes ago.

Go check it out now: it's available for download here. You can also download the application from the Downloads section at the end of each article.

If you have comments or questions about the source: let me know. I'll try to answer them, or relay them to Sven if necessary.

Imar

 


Where to Next?

Wonder where to go next? You can read existing comments below or you can post a comment yourself on this article .


Consider making a donation
Please consider making a donation using PayPal. Your donation helps me to pay the bills so I can keep running Imar.Spaanjaars.Com, providing fresh content as often as possible.



Feedback by Other Visitors of Imar.Spaanjaars.Com

On Sunday, February 08, 2009 9:39:45 AM Nick said:
Hi Imar,

Thank you for posting the VB version.

Upon inspection of the ContactManager.DAL.Helper class I noticed the last lines of code, in SetSaveParameters procedure, set up the return parameter, which is not referenced anywhere as far as I can tell. What purpose did you have in mind and how would you retrieve the parameter value after executing a stored procedure?

Cheers,
Nick
On Sunday, February 08, 2009 10:47:58 AM Imar Spaanjaars said:
Hi Nick,

You're right. It's not referenced anywhere and as such serves no purpose. You can delete the code that sets up the parameter.

If you do have return parameters, you can simply access their Value property after you've executed your SQL statement.

Cheers,

Imar
On Sunday, February 08, 2009 12:00:12 PM Nick said:
Imar,

Great, thanx. I would imagine that if we wanted that value we would have to assign a name to the return parameter, otherwise we can't reference it in the code that runs "ExecuteNonQuery()".
i.e:

(Helpers procedure)
Dim returnValue = command.CreateParameter
returnValue.ParameterName = "@retVal"
returnValue.Direction = ParameterDirection.ReturnValue
command.Parameters.Add(returnValue)

(Save in *DB classes)
...
ExecuteNonQuery()
command.Parameters("@retVal).Value '<-do whatever with

Nick
On Sunday, February 08, 2009 12:30:19 PM Imar Spaanjaars said:
Yep, that's correct....

Cheers,

Imar

Talk Back! Comment on Imar.Spaanjaars.Com

I am interested in what you have to say about this article. Feel free to post any comments, remarks or questions you may have about this article. The Talk Back feature is not meant for technical questions that are not directly related to this article. So, a post like "Hey, can you tell me how I can upload files to a MySQL database in PHP?" is likely to be removed. Also spam and unrealistic job offers will be deleted immediately.

When you post a comment, you have to provide your name and the comment. Your e-mail address is optional and you only need to provide it if you want me to contact you. It will not be displayed along with your comment. I got sick and tired of the comment spam I was receiving, so I have protected this page with a simple calculation exercise. This means that if you want to leave a comment, you'll need to complete the calculation before you hit the Post Comment button.

If you want to object to a comment made by another visitor, be sure to contact me and I'll look into it ASAP. Don't forget to mention the page link, or the QuickDocId of the document.

For more information about the Talk Back feature, check out this news item.