What's the difference between <%# %> and <%= %>?

后端 未结 5 1035
执笔经年
执笔经年 2020-12-06 06:20

Pardon my ASP ignorance, but what\'s the difference?

5条回答
  •  一向
    一向 (楼主)
    2020-12-06 07:01

    javascript in .aspx that uses a master page.

    var e = document.getElementById('<%= lblDescription.ClientID %>');
    e.innerHTML = 'getElementById(\'lblDescription\') will be null';
    

提交回复
热议问题