asp.net - What is difference between <%=%> and <%#%> -
all, inline expression in asp.net ,i had questions them.
- what difference between them ?
- in situation ,which 1 better?
by way, found below code first 1 doesn't works , second 1 works. why?
<head runat="server"> <title></title> <script src="<%#fullyqualifiedapplicationpath%>scripts/jquery.js" type="text/javascript"></script> </head><!--not ok--> <head runat="server"> <title></title> <script src="<%=fullyqualifiedapplicationpath%>scripts/jquery.js" type="text/javascript"></script> </head><!--ok--> fullyqualifiedapplicationpath variable defined in code behind. review.
<%= %> loading variables <%# %> databaind
consult this post or this question more info
Comments
Post a Comment