中继器ItemTemplate问题 [英] Repeater ItemTemplate Problem

查看:61
本文介绍了中继器ItemTemplate问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过自学学习ASP.Net编程.我正在尝试使用Repeater控件.当我尝试使用以下XML设置ItemTemplate时,出现错误. < li><%#Container.DataItem(名称")%>/li.  I 我正在使用VS2008作为学习工具,但似乎不喜欢<%#"源代码编辑器中以黄色显示的语法.谁能提供指导?

I am attempting to learn ASP.Net programming through self study. I am trying to use the Repeater control. When I attempt to setup the ItemTemplate with the following XML I get an error.  <li><%# Container.DataItem("Name") %></li>. I am using VS2008 as a learning tool and it doesn't seem to like the "<%#" syntax as it shows in yellow in the source editor. Can anyone provide guidance?

推荐答案

Microsoft ASP.Net论坛


这篇关于中继器ItemTemplate问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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