如何在单个链接按钮中绑定两个控件,如下所示 [英] how to bind the two control in single link button as shown below

查看:59
本文介绍了如何在单个链接按钮中绑定两个控件,如下所示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将链接按钮中的开始日期和结束日期与我们的内容绑定在一起,但是有错误服务器标记

请提供正确答案的任何人

我的错误代码是


< asp:LinkBut​​ton ID ="lnkv" runat ="server" CommandName ="selectv" Text =投票过程在以下之间打开:<%#DataBinder.Eval(Container.DataItem,"VotingStartDate")%>
到<%#DataBinder.Eval(Container.DataItem,"VotingEndDate")%><//asp:LinkBut​​ton>

i wants to bind the start date and end date in link button withe including our content but there is error server tag

plz any one provid the correct answer

my wrong code is


<asp:LinkButton ID="lnkv" runat="server" CommandName="selectv" Text=Voting process is open between: <%# DataBinder.Eval(Container.DataItem,"VotingStartDate")%>
to <%# DataBinder.Eval(Container.DataItem,"VotingEndDate")%>></asp:LinkButton>

推荐答案

在数据绑定控件中.

I assume this is inside a databound control.

写道:​​

但有错误的服务器标记



如果您向我们提供了实际的错误消息,我们可能会为您提供帮助.编辑您的帖子以添加必要的细节,请.

哦,您没有在文字中加上引号.每次都会破坏它.

下次,请告诉我们真正的错误消息,而不是一半.



If you give us the actual error message, we may be able to help. Edit your post to add the necessary detail, pls.

Oh, you didn''t put your text in quotes. That''s going to break it, every time.

Next time, do tell us the real error message tho, not half of it.


这篇关于如何在单个链接按钮中绑定两个控件,如下所示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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