C# coding error

Discussion in 'ASP .Net' started by TJS, Oct 28, 2004.

  1. TJS

    TJS Guest

    can anyone help me with this line 35 error ?
    =========================================
    Compiler Error Message: CS0246: The type or namespace name 'ControlChars'
    could not be found (are you missing a using directive or an assembly
    reference?)

    Source Error:


    Line 33: WelcomeMessage.Text = "Welcome " +
    Context.User.Identity.Name + "! <" + "span class=Accent" + ">|<" + "/span" +
    ">";
    Line 34: if (Context.User.Identity.AuthenticationType == "Forms") {
    Line 35: LogoffLink = "<" + "span class='Accent'>|</span>" +
    ControlChars.Cr + "<" + "a href=" +
    Global.GetApplicationPath(context.Request) + "/Admin/Logoff.aspx
    class=SiteLink> Logoff" + "<" + "/a>";
    Line 36: }
    Line 37: }
     
    TJS, Oct 28, 2004
    #1
    1. Advertising

  2. There is no ControlChars in c#.

    Eliyahu

    "TJS" <> wrote in message
    news:%...
    > can anyone help me with this line 35 error ?
    > =========================================
    > Compiler Error Message: CS0246: The type or namespace name 'ControlChars'
    > could not be found (are you missing a using directive or an assembly
    > reference?)
    >
    > Source Error:
    >
    >
    > Line 33: WelcomeMessage.Text = "Welcome " +
    > Context.User.Identity.Name + "! <" + "span class=Accent" + ">|<" + "/span"

    +
    > ">";
    > Line 34: if (Context.User.Identity.AuthenticationType == "Forms") {
    > Line 35: LogoffLink = "<" + "span class='Accent'>|</span>" +
    > ControlChars.Cr + "<" + "a href=" +
    > Global.GetApplicationPath(context.Request) + "/Admin/Logoff.aspx
    > class=SiteLink> Logoff" + "<" + "/a>";
    > Line 36: }
    > Line 37: }
    >
    >
    >
     
    Eliyahu Goldin, Oct 28, 2004
    #2
    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. Vasudevan Subramaniam

    Coding error

    Vasudevan Subramaniam, Dec 9, 2003, in forum: VHDL
    Replies:
    3
    Views:
    886
    Thomas Stanka
    Dec 10, 2003
  2. =?iso-8859-15?q?Berthold_H=F6llmann?=

    Syntax error in files with with 'iso-8859-15' coding header

    =?iso-8859-15?q?Berthold_H=F6llmann?=, Sep 21, 2005, in forum: Python
    Replies:
    0
    Views:
    426
    =?iso-8859-15?q?Berthold_H=F6llmann?=
    Sep 21, 2005
  3. calmar
    Replies:
    11
    Views:
    947
    calmar
    Feb 21, 2006
  4. venkatesh

    please tell what is error on my coding?

    venkatesh, Dec 2, 2005, in forum: C Programming
    Replies:
    2
    Views:
    244
    Sjouke Burry
    Dec 2, 2005
  5. thedarkman

    obscure coding error

    thedarkman, Apr 24, 2012, in forum: HTML
    Replies:
    5
    Views:
    667
    Jonathan N. Little
    Apr 25, 2012
Loading...

Share This Page