问题描述
嗨......我在href属性中调用了一个javascript函数,该函数位于repeater控件下,如下所示
< ; a id =a1runat =servertitle =查看使用href ='javascript:ShowUseSummary(<%#DataBinder.Eval(Container.DataItem,ID)%>);'> ; asp.net
当执行页面时,锚标记的输出显示如下所示的值。
); id =AuxiliaryInfoRepeater_ctl01_a1title =查看使用> asp.net
请帮我解析
Hi ...I am calling a javascript function in href attribute which is placed under repeater control as shown below
<a id="a1" runat="server" title="View Use" href='javascript:ShowUseSummary("<%# DataBinder.Eval(Container.DataItem, "ID") %>");'>asp.net
The output of anchor tag is displaying the value like below when page is executed.
");" id="AuxiliaryInfoRepeater_ctl01_a1" title="View Use">asp.net
please help me what is the problem in parsing
推荐答案
<a id="a1" runat="server" title="View Use" href=javascript:ShowUseSummary("<%# DataBinder.Eval(Container.DataItem, "ID") %>")></a>
这篇关于无法解析锚标记中的href属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!