HomeCommunityControl GalleryForm ControlsAnchorsObfuscated Email Control

Obfuscated Email Control



Submit a Review

476 Downloads

18,617 Views


Description

The email obfuscator control works very much like a .NET Hyperlink control except that it does not have NavigateUrl and Target properties but instead has EmailAddress. The control also allows you to choose between a number of encoding mechanisms that will hide your email address from spam bots using javascript techniques. Also as spam bots are getting cleverer there is an option for you to make your own custom encoder.

Syntax Example

// handle images just like the HyperLink Control ObfuscatedEmail2.ImageUrl = "images/navlink.gif"; // Handle your own format by hooking into the event this.ObfuscatedEmail2.OnCustomObfuscator += new ManyMonkeys.Web.UI.Controls.ObfuscatedEmail.CustomObfuscator(this.ObfuscatedEmail2_OnCustomObfuscator); ObfuscatedEmail2.ObfuscationMethod = ObfuscatedEmail.ObfuscatedEmailMethod.Custom; ... // only one handler can be attached to this event private void ObfuscatedEmail2_OnCustomObfuscator(string input, out System.String output) { // transform from the data output = input; // dummy processing }

Screenshots

Reviews

Submit a review