Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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!

Posted

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:

Never trouble another for what you can do for yourself.
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...