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. Advertisements

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:
    414
    Rikart Pettersen
    Jan 3, 2005
  2. Replies:
    2
    Views:
    675
    Paul Boddie
    Oct 8, 2006
  3. Matt Sokol
    Replies:
    2
    Views:
    607
    Theo Tillotson
    Aug 7, 2003
  4. Rob Joosen

    Keep custom property-value in custom rendered control

    Rob Joosen, May 12, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    251
    Rob Joosen
    May 12, 2004
  5. anon
    Replies:
    0
    Views:
    303
  6. PeterKellner
    Replies:
    0
    Views:
    157
    PeterKellner
    May 22, 2006
  7. Replies:
    1
    Views:
    168
    Martin Honnen
    Sep 20, 2006
  8. Frycake
    Replies:
    2
    Views:
    145
Loading...