用这种方法不是更好吗:
<asp:templatecolumn><ItemTemplate>
<a href='luntanview.aspx?category=<%# DataBinder.Eval(Container.DataItem,"category") %>&articalid=<%# DataBinder.Eval(Container.DataItem,"articalid") %>'><%# DataBinder.Eval(Container.DataItem,"lastrptitle") %></a>
</ItemTemplate></asp:templatecolumn>
<asp:templatecolumn><ItemTemplate>
<a href='luntanview.aspx?category=<%# DataBinder.Eval(Container.DataItem,"category") %>&articalid=<%# DataBinder.Eval(Container.DataItem,"articalid") %>'><%# DataBinder.Eval(Container.DataItem,"lastrptitle") %></a>
</ItemTemplate></asp:templatecolumn>
解决方案 »
- 索引值超出范围
- Repeater 如何进行排序
- ie js 模式窗口 和非模式窗口
- 我在写ASP.NET程序时,经常会遇见需要弹出窗口,让用户选择一个参数,然后回到原来的界面继续运行的情况,看到有的人用类似日期控制哪样来做,我想知道还有没有更好的办法?
- 如何使得用户在注册或登陆后,不管切换哪个页面都处于登陆状态
- asp.net CMS 哪个比较主流,好用。
- 怎么样获取资源请求的来源页面地址?
- 如何在一打开页面时,就让光标停在一个可输入的文本框上?
- 数据库连接不上,求救
- 网页自动跳转问题
- 问个菜鸟问题:为什么在某个项目中修改.aspx就可以看见修改结果,但修改.aspx.cs文件就看不见结果
- 问几个巨菜送分问题,还请大家不要笑话啊
NavigateUrl='<%# "luntanview.aspx?category="+ DataBinder.Eval(Container.DataItem,"category").ToString() + "&articalid=" + DataBinder.Eval(Container.DataItem,"articalid")%>'
但我还想知道我提的问题的答案
有这样写的吗{1}
=========================================
有呀,{0}表示第一个参数的值即DataBinder.Eval(Container.dataitem, "category")的侄,{1}表示第二个参数的值,
说“/eoffice”应用程序中的服务器错误。
--------------------------------------------------------------------------------编译错误
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误信息: BC30205: 需要语句结束。