地址:http://community.csdn.net/Expert/topic/5706/5706614.xml

解决方案 »

  1.   

    try -><asp:Label ID="place" runat="server" Text='<%# Eval("单位","<script>document.write(limitStr('{0}',24,true))</" + "script>") %>' > </asp:Label>
      

  2.   

    <asp:Label ID="place" runat="server" Text='<%# String.Format("&lt;script&gt;document.write(limitStr({0},24,true));&lt;/script&gt;",Eval("单位").ToString())%>'></asp:Label>
      

  3.   

    问题已解决,谢谢大家。参考:
    http://community.csdn.net/Expert/TopicView.asp?id=5706614