Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 991
  • Last Modified:

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

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 ?
1 Solution
It's ClientID, not ClientId.  Capitalization matters.

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Tackle projects and never again get stuck behind a technical roadblock.
Join Now