code_junkie

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

Nov 11th, 2011
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. <asp:SqlDataSource ... Runat="server"
  2. ConnectionString="<%$ ConnectionStrings:Northwind %>"
  3. />
  4.  
  5. <asp:Literal Runat="server"
  6. Text="<%$ Resources:MyResources, MyText %>"
  7. />
  8.  
  9. var e = document.getElementById('<%= lblDescription.ClientID %>');
  10. e.innerHTML = 'getElementById('lblDescription') will be null';
Add Comment
Please, Sign In to add comment