Last post Jul 29, 2007 04:14 AM by jnc
Jul 28, 2007 12:32 PM|jnc|LINK
On my pages there are
<%@, <%#, <%= there must be more
I use these tags and because they work I have never asked the question but now I search I can find nothing about them anywhere
what I want to know is what they are called, what the vairiants are and what they all do
Jul 28, 2007 12:43 PM|StrongTypes|LINK
<%# is a data binding syntax for use in databound controls.
<%= is a short cut for Response.Write.
<%@ is a directive to include a namespace, page directives, etc.
Jul 28, 2007 01:40 PM|mbanavige|LINK
those tags can be hard to search for since the are generally discarded by search engines as noise...
here are some helpful links for you on the various tags.
<% %> An embedded code block is server code that executes during the page's render phase. The code in the block can execute programming statements and call functions in the current page class.
<%= %> most useful for displaying single pieces of information.
<%# %> Data Binding Expression Syntax.
<%$ %> ASP.NET Expression.
<%@ %> Directive Syntax.
<%-- --%> Server-Side Comments.
<%: %> Like <%= %> But HtmlEncodes the output (new with Asp.Net 4).
Jul 29, 2007 04:12 AM|jnc|LINK
Jul 29, 2007 04:14 AM|jnc|LINK
very interesting and useful