对象数据显示在网格视图中项目模板 [英] Object data show in grid view Item Template

查看:59
本文介绍了对象数据显示在网格视图中项目模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<asp:Label Id="lblSubclassVal" runat="server" Text='<%# ((LateAttendanceApprovalDto)Container.DataItem).EmployeeDto.EmployeeName  %>'>



这不起作用..............如何解决.请解决这个问题.



This is not working ...........How can solve it.pls solve this problem.

推荐答案

如果您在后面绑定了GridView尝试这样做Text=''<%# DataBinder.Eval(Container.DataItem,"Employee") %>''
If you have binded the GridView in behind try doing this Text=''<%# DataBinder.Eval(Container.DataItem,"Employee") %>''


这篇关于对象数据显示在网格视图中项目模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆