Creating Multi-Language Custom Control
page 2 of 8
by Abdulla Hussein AbdelHaq
Average Rating: 
Views (Total / Last 10 Days): 36417/ 64

Control Preparations

You need to add the following references to build it successfully.

1.    System.Design

2.    System.Drawing

3.    System.Web

4.    System.Web.Extensions

5.    System.Web.Extensions.Design

As you see in Listing 1, our custom control will inherit the CompositeControl class and it has an “asp” prefix tag to make our custom control supporting Intellisense in the HTML view source.

Keep in mind that if you are using Visual Studio 2005, you have to install at least Visual Studio 2005 SP1 to fix the Intellisense bug.

Listing 1

Namespace CustomsControls
< _
    AspNetHostingPermission(SecurityAction.Demand, _
   = AspNetHostingPermissionLevel.Minimal), _
     AspNetHostingPermission(SecurityAction.InheritanceDemand, _
   = AspNetHostingPermissionLevel.Minimal), _
     Designer(GetType(MultiLangDesginTime)), _
     ToolboxData("<{0}:CustomMultiLang runat=""server"" />") _
     > _
     Public Class CustomMultiLang
  Inherits CompositeControl
End Class
End Namespace

View Entire Article

User Comments

Title: Good Article   
Name: Vagueraz
Date: 2008-07-04 5:03:31 AM
Very Good and Strong Article , and it's not only useful for devlopers also for end-users ....
Title: Outstanding Work   
Name: Jean-Pierre Jamous
Date: 2008-07-02 10:01:11 PM
Extremely nice. It comes handy for developers. You've done a tremendous job at it. Keep up the great work.
Title: Very good article   
Name: Anas al-qudah
Date: 2008-07-02 4:03:52 AM
It's realy Very good article and help me.
Thanks thanks alot.

Product Spotlight
Product Spotlight 

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2023  |  Page Processed at 2023-03-22 2:24:23 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search