30th December 2006, 04:15 am
I posted an article to The Code Project for an image control. The basic idea for developing that is to write e-mail addresses as images using various formatting options on web applications.
Labels are generated as images instead of text, to have more privacy without any configurations and without HttpHandlers
ImageLabel is an ASP.NET web control for generating labels as images. You might want to do that for providing security for e-mail crawlers or to disallow copy paste of the text. Many similar controls have implemented as HttpHandlers, so you need more configuration to make them work. However this control does not need any configuration. You just need to use just like any other asp.net control like Label. Almost all of the label formatting options are included, like font size, backcolor, forecolor. Although this is not implemented as a CAPTCHA control, that functionality can easily added to image generation method.
ImageLabel Control at CodeProject
I think it is a good way to understand page and control life cycle using that control, if you are wondered about them. Beside that, if you like the article you can vote for me if you want to
Browser View :

Visual Studio Design View :

Tags:
.Net,
ASP.Net,
C#,
code,
codeproject,
control,
Projects,
webcontrol Category:
.Net,
ASP.Net,
C#,
General,
Projects |
1 Comment
28th December 2006, 02:59 am
I was just willing to write .Net 1.1 applications from Visual Studio 2005. Maybe you may already know but I found that great utility MsBee. You need also .Net Framework 1.1 SDK to make it install and work if you don’t have and surprisingly 1.1 SDK has a size of more than 100Mb.
Anyway, it is good to write .Net Framework 1.1 targeted applications from Visual Studio 2005.
17th December 2006, 04:30 am
Collections are the most used elements in the programs. Indexers helps us to access the elements of a collection. Although you might not have implemented indexers, you have used indexers a lot. Whenever you have an array or a collection object you use indexers.
Implementing indexers is done by coding “this[TYPE]” property. The object implementing the indexer can be any type of object, however the object is mostly a collection object. For simplicity I haven’t implemented as a collection object here. Most of the indexers are integers, but it can be any type of indexer.
C# 2.0 has come with a new keyword “yield”. You can return an enumerable object using yield keyword with the combination of “return” keyword, rather than building the collection and returning it.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace properties
{
class Program
{
static void Main(string[] args)
{
User u1 = new User();
Console.WriteLine(u1[56]);
User u2 = u1["use","of","indexers", "explained", "with", "multiple", "arguments"];
foreach (string name in u2.GiveUserNames())
{
Console.WriteLine(name);
}
Console.Read();
}
}
public class User
{
public string this[int a] // type to return usually the collections element type
{
get
{
return string.Format("Somebody has called me with index {0}", a);
}
}
private string[] userNames; // just to demonstrate params
public User this[params string[] items]
{
get
{
userNames = items;
return this;
}
}
public IEnumerable<string> GiveUserNames()
{
foreach (string i in userNames)
{
yield return i;
}
}
}
}
Output :
Somebody has called me with index 56
use
of
indexers
explained
with
multiple
arguments
_
Those feature are really useful if you are dealing with your own types.
11th December 2006, 10:19 pm
XNA team today released XNA Game Studio Express 1.0 with XNA framework 1.0.
I am working with XNA for a couple of weeks, I will definetely post some samples and give more examples and reference about the framework in later posts. I really liked that technology and the facilities it provides. Beside that my new project might use XNA, don’t know yet
11th December 2006, 09:55 pm
We are getting close to Minority Report as a futuristic sense. Microsoft has updated their Virtual Earth product to take a ride around some cities. The world is getting smaller. It’s impressive to take a race car or a sport car to hang around Seattle or San Francisco or you might want to walk as well. Those cities will be more in a matter of time. Unfortunetely, we are really approching the limits of virtual world than Singularity is near.
10th December 2006, 05:31 am
My windows became unbootable, I was receiving and I logged to my linux partition. I was looking for the bootdisks for my flash drive because I don’t have an XP cd (Laptop gave only the ghost image of Windows CD), I needed to have chkdsk command at least, so I googled for “windows boot disk usb chkdsk” then clicked the 2nd result which is “Bootdisk.Com Top Ten TuneUp Tips” the link goes to http://www.google.co.uk/interstitial?url=http://www.bootdisk.com/topten.htm site and the Malware Warning page.

I wouldn’t know, It is nice to know that, although I am totaly in an another platform (I am in linux and can’t boot windows) it is nice to have that.
I found BartPE bootable cd for the solution of my problem. It is uses Windows XP files and can be used for the bootable cd or bootable flash disk.
Here are links that you can find more information :