473,385 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

C# coding error

TJS
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: }

Nov 18 '05 #1
1 954
There is no ControlChars in c#.

Eliyahu

"TJS" <no****@here.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
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: }

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Berthold Höllmann | last post by:
I have a default coding header # -*- coding: iso-8859-15 -*- in my python files. I now have Problems with this settings. I swithched to Python 2.4.1 under Windows. When I import files with the...
144
by: Natt Serrasalmus | last post by:
After years of operating without any coding standards whatsoever, the company that I recently started working for has decided that it might be a good idea to have some. I'm involved in this...
2
by: lovecreatesbeauty | last post by:
Some of the coding guideline are mandatory, and even the format or layout of the text of the source code also should be followed. There's plenty of codes like the following snippet. Do you think...
1
by: R Reyes | last post by:
Hello All, I'm always looking for ways to improve my code. Most of the time (whenever I'm working on a project) I write a bunch of functions. Then after the project is finished, I put all the...
0
by: RD | last post by:
The following code snippet is taken from book Coding techniques for Microsoft Viusal Basic .Net. Its part of a sample error handler. In the public Sub New below after comment Write information to...
7
by: Jim Michaels | last post by:
This is a simple coding tip I learned to prevent comparisons from becoming assignments (and this becoming a hair-pulling session during debugging): in comparisons, try to put your constants on...
0
by: saravanansvks | last post by:
Dear Friends, I have prepared a programme in Visual Basic for SHAPE OPERATOR.But my coding are changing the shape only.It does not changes the fill style of the shape tool .And it is not giving ant...
3
by: juliehg | last post by:
Hi, I'm currently using MS Access 2000 to keep all my actors measurements, resumes and personal details on a database. To upload their details onto our website, I have built an event so when I...
19
by: auratius | last post by:
http://www.auratius.co.za/CSharpCodingStandards.html Complete CSharp Coding Standards 1. Naming Conventions and Styles 2. Coding Practices 3. Project Settings and Project Structure 4....
6
by: zxo102 | last post by:
Hi, how to change the hexadecimal 'ED6F3C01' (or 'ED 6F 3C 01') to "\xED\x6F\x3C\x01" in python coding? When I take 'ED6F3C01' as a string and insert '\x' into it, I just got the error...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.