asp.net tag with a hash

  • Thread starter Thread starter Velislav
  • Start date Start date
V

Velislav

hi,

this is a silly question, but it's been on my mind all day and just
quick google search didn't reveal anything so here goes:

what exactly is the difference between <%#
Code:
 %> and <% [code] %>?

if i have a method MyMethod() in the code behind, and i say
<%# MyMethod() %> the semi colon is not required (in fact if i add it,
i get a ") expected" exception.
and in the case of <% MyMethod(); %> if the semi-colon is missing, i
get a "; expected" exception.

but what is the formal explanation for this?

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top