kkqbalm
asked on
C# Error in <%= MyLabl.ClientId %>
Hello,
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:
<script>
document.getElementById("< %=MyLabel. ClientId%) ").value=' lala'
</script>
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 ?
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:
<script>
document.getElementById("<
</script>
But when i try to run it give me this error:
CS0117: 'System.Web.UI.WebControls
(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 ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.