source http://stackoverflow.com/a/517742
http://stackoverflow.com/a/649458
search provieded by - http://symbolhound.com/?q=%3C%25%40+%3C%25%3D+%3C%25%23
http://stackoverflow.com/a/649458
search provieded by - http://symbolhound.com/?q=%3C%25%40+%3C%25%3D+%3C%25%23
JavaScript:
<%@ - Page/Control/Import/Register directive
<%$ - Resource access and Expression building
<%= - Explicit output to page, equivalent to <% Response.Write( ) %>
<%# - Data Binding. It can only used where databinding is supported, or at the page level if you call Page.DataBind() in your code-behind.
<%-- - Server-side comment block
<%: - Equivalent to <%=, but it also html-encodes the output.
JavaScript:
//example.cs
<script runat="server">
internal string calculate_proper_shipping_cost(object deliveryCost, object specialCost)
{
double total = 0;
if (deliveryCost != null)
total = double.Parse(deliveryCost.ToString());
if (specialCost != null)
total += double.Parse(specialCost.ToString());
return General.FormatC(total.ToString());
}
</script>
//when using Data Binding warning the semicolon throws error CS1026: ) expected :
//proper
<%# calculate_proper_shipping_cost( Eval("DiscountValue"), Eval("DiscountValue")) %>
//invalid
<%# calculate_proper_shipping_cost( Eval("DiscountValue"), Eval("DiscountValue")); %>