asp.net - What is difference between <%=%> and <%#%> -


all, inline expression in asp.net ,i had questions them.

  1. what difference between them ?
  2. 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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -