Asp.net 中a标签加了runat=‘server’ 后如何才能正确解析<%# Eval(" ")%>
<aid="sendRecent"runat="server"href='javascript:TabPanel1_readMailurl("发","<%#Eval("m...
<a id="sendRecent" runat="server" href='javascript:TabPanel1_readMailurl("发","<%# Eval("mailId") %>","<%# Eval("receiveId") %>","<%# Eval("mailState")%>");'>编辑</a>
<a href='javascript:TabPanel1_readMailurl("发","<%# Eval("mailId") %>","<%# Eval("receiveId") %>","<%# Eval("mailState")%>");'>阅读</a>
<a href="javascript:TabPanel1_readMailurl("发","<%# Eval("mailId") %>","<%# Eval("receiveId") %>","<%# Eval("mailState")%>");" id="ctl00_ContentPlaceHolder1_TabContainer1_TabPanel2_DataListSend_ctl01_sendRecent">编辑</a>
查看源码时,(上面的)加了runat的不能显示数据
下面是没加的却能正常显示数据
<a href='javascript:TabPanel1_readMailurl("发","9","20040","0");'>阅读</a> 展开
<a href='javascript:TabPanel1_readMailurl("发","<%# Eval("mailId") %>","<%# Eval("receiveId") %>","<%# Eval("mailState")%>");'>阅读</a>
<a href="javascript:TabPanel1_readMailurl("发","<%# Eval("mailId") %>","<%# Eval("receiveId") %>","<%# Eval("mailState")%>");" id="ctl00_ContentPlaceHolder1_TabContainer1_TabPanel2_DataListSend_ctl01_sendRecent">编辑</a>
查看源码时,(上面的)加了runat的不能显示数据
下面是没加的却能正常显示数据
<a href='javascript:TabPanel1_readMailurl("发","9","20040","0");'>阅读</a> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询