2016-04-28 76 views
0
<a href="/web-services/" rel='<%# DataBinder.GetPropertyValue(this, "Testing") %>' runat="server" id="banquet" class="tr_delay_hover color_light tt_uppercase"><%# DataBinder.GetPropertyValue(this, "Testing") %> 


public string Testing { get { return "hello world!"; } } 

回答

0

的EVAL變量值嘗試通過=

<a href="/web-services/" rel='<%= DataBinder.GetPropertyValue(this, "Testing") %>' runat="server" id="banquet" class="tr_delay_hover color_light tt_uppercase"><%= DataBinder.GetPropertyValue(this, "Testing") %> 
0

更換#,你有runat="server"屬性設置,您可以訪問錨html元素,用InnerText

banquet.InnerText = Testing; 
相關問題