ASP.NET using C#; .net3.5
I want to set some value for this label lblSkill1 Control. I’m unable to access Skill1 in Eval function.
I’m unable to set some Text value in the place of '<%# Eval("Skill1") %>' for lblSkill1 Control.
HTML markup:
<HeaderTemplate>
<table cellpadding="0" cellspacing="0" style="padding-left: 0px; padding-right: 0px;
margin-left: 0px">
<tr>
<td>
  
</td>
</tr>
<tr>
<td align="center">
<asp:Label ID="lblSkill1" runat="server" Text='<%# Eval("Skill1") %>' />
</td>
</tr>
</table>
</HeaderTemplate>
How can i set a value ‘java‘ in the place of Skill1 as i said above?
In the ItemDataBound Event you can find the control and set the value in your code behind file, I’ve presumed your using a Repeater.
For a GridView.