Previously, data binding in a project has been <%#%>
There is a section of code in the admintabs.ascx of ASP.net startkit timetracker today:
<a href= ' <%= global.getapplicationpath (Request)%>/<%# (ASPNET. StarterKit.TimeTracker.BusinessLogicLayer.TabItem)
Container.DataItem). Path%> ' >
<%# (ASPNET. StarterKit.TimeTracker.BusinessLogicLayer.TabItem) Container.DataItem). Name%>
</a>
Never understood the data binding syntax <%=%> what it means, or when it should be used.
Can I change the above code to:
<a href= ' <%# global.getapplicationpath (Request) + "/" + (ASPNET. StarterKit.TimeTracker.BusinessLogicLayer.TabItem)
Container.DataItem). Path%> ' >
<%# (ASPNET. StarterKit.TimeTracker.BusinessLogicLayer.TabItem) Container.DataItem). Name%>
</a>
I only know <%=%> seems to be ASP's syntax, because I have not written ASP, very raw for ASP.
I don't know which friend can give me advice. I have been dizzy for this question for a whole afternoon, thank you.