Norwegian characters in string property of Custom Control disappears

Discussion in 'ASP .Net Building Controls' started by Cato Antonsen, Jan 23, 2004.

  1. Hi,

    I'm developing an Inhereted Webcontrol with one string property named
    LookupGroups. In the development enviroment I set this property to
    'Sekretærer' (html: Sekretærer) which contains Norwegian
    characters.

    In the Set declaration of this property the 'value' has lost the
    Norwegian character and is thus 'Sekretrer'.

    Do anyone know why this happens -- and even better how to fix?

    Here is a code snippet:

    [DefaultProperty("TextValue")
    ,ToolboxData("<{0}:Lookup runat=server></{0}:Lookup>")
    ,ParseChildren(true)]
    public class Lookup : System.Web.UI.WebControls.WebControl
    {
    private string _lookupGroups;

    [Category("Custom")]
    public string LookupGroups
    {
    get { return this._lookupGroups; }
    set { this._lookupGroups = value; } <--- Invalid value
    }

    }

    Sincerely,
    Cato Antonsen
    Cato Antonsen, Jan 23, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rikart Pettersen

    UserControls and Norwegian characters

    Rikart Pettersen, Jan 3, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    362
    Rikart Pettersen
    Jan 3, 2005
  2. Replies:
    2
    Views:
    531
    Paul Boddie
    Oct 8, 2006
  3. Genich

    Inner child controls html disappears when property is changed

    Genich, Oct 4, 2003, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    116
    Teemu Keiski
    Oct 5, 2003
  4. Replies:
    1
    Views:
    113
    Martin Honnen
    Sep 20, 2006
  5. Frycake
    Replies:
    2
    Views:
    98
Loading...

Share This Page