What is the difference between <% %>, <%= %>, <%# %>?

 Posted by Tripati_tutu on 11/17/2010 | Category: HTML 5 Interview questions | Views: 2487 | Points: 40

• The codes written in <% %> can be treated as server side code in script languages.

• The code written in <%= %> is used for accessing any server side variable into the HTML (in .aspx) page.

• The code written in <%# %> is for the binding control like repeater, gridview etc. Basically this is used to bind the particular column with the database value when the Autogenerate column of the binding control is false.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Akiii on: 7/11/2011 | Points: 10
nice one...


Login to post response