Define and call function in asp.net page (C#) : function « Language Basics « ASP.NET Tutorial






<%@ Page Language="C#" %>

<script runat="server">
   void Page_Load(Object Sender, EventArgs e) {
      MultiplyNumbers(8,9);

      MultiplyNumbers(4,12);

      MultiplyNumbers(38,23);
   }

   void MultiplyNumbers(int intA, int intB) {
      Response.Write(intA * intB + "<br>");
   }
</script>

<html><body>

</body></html>








2.4.function
2.4.1.Define and call function in asp.net page (C#)
2.4.2.Return value from function (VB)
2.4.3.Define function
2.4.4.Create a function (VB)