<label text='第" <%# Bind("WeekNumber")%>"周'> 

解决方案 »

  1.   

    <label text='<%# "第"+Bind("WeekNumber")+"周" %>'> 
      

  2.   

    <label text=' <%# "第"+Bind("WeekNumber")+"周" %>'> 分开写
      

  3.   

    <label text='  <%# "第"+Eval("WeekNumber")+"周" %>'> 可以,但能否解释一下为什么呢
      

  4.   

    <% %>  你可以在HTML视图像在 .CS 里一样打代码<%# %> 主要用在绑定数据<%$ %> ……<%= %>  相当于HTML中用 <% Response.Write("A") %>,输出
      

  5.   


    <label text=' <%# "第"+ Bind("WeekNumber").ToString()+"周" %>'> 
      

  6.   


    最近在做站点国际化的时候发现了<%$ %>是做什么用的,是用来绑定全局资源文件内容的