Passing values between usercontrol and ASP.NET page

There are many ways to exchange data between webpage (.aspx) and it’ s user control (.ascx). You can declare properties on usercontrol, you can raise events on usercontrol catch them on webpage with delegates, or use javascript for data exchange and so on.. Few days ago my buddy and me came up with an alterative solution, using an interface class.

Here’s how:

We will build a small web project that uses usercontrol to add two numbers and show the result. These two numbers come from the parent page (.aspx), through specific interface.

1. For this example, create a new ASP.NET Web application project on Visual Studio.
2. On Default.aspx page, add two labels and textboxes (“txtNumber1” and “txtNumber2”. Your page should look like this:

Read the rest of this entry »


Free ebook: Programming Windows Phone 7, by Charles Petzold

Free ebook about Windows 7 Phone programming from my favorite author. Download it here:

Tip: List of all ports used by Windows Services

For a complete list of all possible ports used by Windows Services, check this nice article for KB support:



Posted in VB.Net. Tags: . Leave a Comment »

Overview of Windows Azure

This blog is worth of a closer look, very nice article about Azure:

Posted in Azure. Tags: . Leave a Comment »

Tip: Get remote user PC data quickly

If you have ever tried to give remote assistance to user without any professional tools,  you might want to take a look on this website.

Using user’s PC, just navigate to and it will display useful information about user machine right there on the browser window for you.

Bonus: Exports the data to PDF and CSV  plus send all details over email..

Tip: Some very nice VB6 websites

Still using Visual Basic 6 ?  So am I !

Here are some useful VB6 reletaed websites:

Tip: Windows On-screen keyboard

Ever had a broken key on your keyboard ? You can try to type the letter or number using ascii code if you want, but there is easier way and faster. You can use On-screen keyboard, “osk”..

Here’s how to access it:

Hold Windows key + r, then type: “osk” in the “Run” box + enter.. and you have it !


Posted in Tips. Tags: , , . Leave a Comment »