Answer:
• 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