Call page level function (C#) : Function « Page « ASP.Net






Call page level function (C#)

<script Language="c#" runat = "server">
  public int Subtract(int intFirst, int intSecond)
  {
    return intFirst - intSecond;
  }
</script>
The value of 45 minus 30 is : <%=Subtract(45, 30) %>

           
       








Related examples in the same category

1.Define and use page level function (C#)