C# Error in <%= MyLabl.ClientId %>

Posted on 2007-08-11
Last Modified: 2013-12-17
im right now in the middle on converting myself from VB.Net To C# (Since my company decided that from now on they will only use C# for new projects)

And after a many dead ends, i have somehow managed to learn a thing or two.. But now i have come with this error and i have no ideia how to proced now..

i have in the html something like this:


But when i try to run it give me this error:
CS0117: 'System.Web.UI.WebControls.Label' doesnt have a definition for  'ClientId'
(the error message was in another language so i somehow translated it to english)

Now.. how can i write the object client id for javascript use ?
Question by:kkqbalm
    1 Comment
    LVL 19

    Accepted Solution

    It's ClientID, not ClientId.  Capitalization matters.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now