Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 174249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:29:17+00:00 2026-05-11T13:29:17+00:00

What is the official name for the special ASP.NET tags like this: <%# %>

  • 0

What is the official name for the ‘special’ ASP.NET tags like this:

<%# %> <%= %> <%@ %> <%$ %> 

I can’t seem to figure out the conceptual or well known name for these, so I’m having trouble searching for more info. As a bonus, can anyone give me a quick rundown of all of the possible ‘special tags’ and what each one of them does (or point me to a resource)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:29:17+00:00Added an answer on May 11, 2026 at 1:29 pm

    The official name is ‘server-side scripting delimiters‘ or ‘ASP.NET inline expressions‘. Visual Studio 2008 syntax highlighting settings dialog calls these ‘HTML Server-Side Script’. Microsoft guys call them ‘code nuggets’ in their blogs.

    • <%@ %> is a Directive for ASP.NET Web Pages. Used for pages and controls to configure page/control compiler settings (<%@ Control Inherits='MyParentControl' %>).
      • <%@ %> is also an Application Directive. Used to specify application-specific settings for global.asax. Distinct from the page directives as it only uses a different tag set.
    • <% %> is a Code Render Block (for inline code). One of 4 forms of Embedded Code Blocks. Used for inclusion of server-side code to the Render() method (<% x = x + 1; %>) of the generated class. Format: single/multiline or multiple-linked (e.g. if/then/else interspersed with html) but cannot be used to declare functions.
    • <%= %> is a Code Render Block (for inline expressions). Used as a shorthand for <%Response.Write(value)%>
    • <%: %> (unofficially an ‘Html Encoding Code Block‘) is the same as previous, but the output is HTML encoded.
    • <%# %> is a Data-binding Expression. Used for one-way (readonly) or two-way (updateable) binding through Eval, Xpath, Bind, or expressions (e.g. the selected value of a drop-down control). Binds expressions to data-bound control properties through the control’s attribute markup, or as a separate tag which generates a DataBoundLiteralControl instance with the value on its Text property. Expressions are evaluated by a DataBinding event handler for the control.
    • <%#: %> is an HTML Encoded Data-Binding Expression (new in ASP.NET 4.5). It combines the functionality of <%# %> and <%: %>.
    • <%$ %> is an ASP.NET Expression Builder. Used for runtime expression binding for control properties through the server tag attributes. Used with AppSettings, ConnectionStrings, or Resources (or your own custom extension, for example to use code-behind properties). These assignments are added to the OnInit() method of the generated class.
    • <%-- --%> is a Server-Side Comment. Used to exclude the contents from compilation (and so will generate errors if a commented-out control is referred to in code-behind). Unlike html comments the contents will not be included in the output.
    • <!-- #Include ... --> is a Server-Side Include Directive. Used to insert the contents of a file into the page, control or global file. Useful where a user control is overkill, and a master page cannot be used.

    There is also a Code Declaration Block, the final Embedded Code Block form.

    <script runat='server'> bool IsTrue() {   return false; } </script> 

    This is used to include additional members (methods etc.) to the class generated from the ASP.NET markup. These have only ever been provided ‘primarily to preserve backward compatibility with older ASP technology’ and are not recommended for use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't know if there is an official name for this, but I have
If I check official documentation , I can see a property called HTML: Name
I've seen this questions here . I'm wondering if there exists an official name
I use gem state_machine - Official Each state can have 'human name'. By docs
Looking for the official name and the linkage type of this type of template
What is the official format of name <email> in email headers? I need to
I need to convert full state name to its official state address code. For
This snippet from official website works as expected: $treeObject = Doctrine::getTable('Category')->getTree(); $rootColumnName = $treeObject->getAttribute('rootColumnName');
What is the official marketing name for C# 4? Apress writes Visual C# 2010
for a simple pointer-increment allocator (do they have an official name?) I am looking

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.