Groups | Blog | Home
all groups > asp.net building controls > november 2003 >

asp.net building controls : Dynamic Changing Properties


Shawn B.
11/26/2003 7:46:46 AM
Greetings,

Suppose I have a control that by default, all the properties and text
rendered is English. If supported, and the user changes to say, arabic, is
it possible for me to change the control enumerations also in the property
editor so that it looks Arabic?

I'd think not. Perhaps I have to use a special control editor and use
strings and then map the string to a particular number indicating the option
chosen? But then the intellisense won't be there in the IDE.


Thanks,
Shawn

Victor Garcia Aprea [MVP]
11/26/2003 7:47:28 PM
Hi Shawn,

You can extend the DescriptionAttribute to show localized text for each of
your properties. You may want to look at the book "Developing ASP.NET Server
Controls and Components"[1] which includes an example of how to do this.

[1]
http://www.amazon.com/exec/obidos/ASIN/0735615829/laplatayacom%22/002-3289718-3478452

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx

To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
[quoted text, click to view]

AddThis Social Bookmark Button