Make sure that the label is having
runat="server"
attribute.
<asp:label id="lblID" runat="server"></asp:label>
Inorder to
Get/Set
the
value from
Label
Control or
TextBox
, use
Text
Property in aspx.cs
lblID.Text = "some value";
txtname.Text = "Some Name";
.value
and
.innerText
works only on
Javascript
or you shall use
Attributes[
^] to set the value in c#