CJLeit Posted November 28, 2006 Posted November 28, 2006 I'm modifying an existing .net website and in the HTML the previous developer using <%# Function Name %> several times in his HTML to call a function and return the value to the screen. I've always used <%= Function Name %>to do the same thing. Is there a difference in the 2 methods of doing this? Thanks! Quote
MrPaul Posted November 29, 2006 Posted November 29, 2006 ASP.Net tags Code enclosed by <% ... %> is just executed, while code enclosed by <%= ... %> is evaluated and the result is emitted as content. Code located within a <%# ... %> code block is only executed when the DataBind method of its parent control container is invoked. Good luck :cool: Quote Never trouble another for what you can do for yourself.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.