Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
ASP.NET
<asp:Label Id="lblSubclassVal" runat="server" Text='<%# ((LateAttendanceApprovalDto)Container.DataItem).EmployeeDto.EmployeeName  %>'>


This is not working ...........How can solve it.pls solve this problem.
Posted
Updated 22-Oct-12 0:39am
v2
Comments
Sergey Alexandrovich Kryukov 21-Oct-12 14:35pm    
We cannot see you declarations of code-behind data items.
--SA
AshishChaudha 22-Oct-12 6:40am    
Agreed..

1 solution

If you have binded the GridView in behind try doing this Text='<%# DataBinder.Eval(Container.DataItem,"Employee") %>'
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900