text='<%=aaa%>'></asp:Label>

解决方案 »

  1.   

    //定义变量
    public static string aaa="test";
      

  2.   

    to  wtadminxjeri(P42.4) :
    当然已经定义了
    to  wxlada(绿茶):
    不行啊,我已经试过了
      

  3.   

    to  wtadminxjeri(P42.4) :
    当然已经定义了
    to  wxlada(绿茶):
    不行啊,我已经试过了
      

  4.   

    <asp:Label id="Label1" style="Z-INDEX: 103; LEFT: 248px; POSITION: absolute; TOP: 72px" runat="server"
    Width="136px" Height="16px" text='<%#aaa%>'></asp:Label>//上面用<%#%>的形式,相当于对Label绑定数据,在对aaa赋值后不要忘了加入下面的
    Label1.DataBind();