Define and call function in a page (VB.net) : Function « Language Basics « ASP.Net






Define and call function in a page (VB.net)

<%@ Page Language="VB" %>
<html>
<head>
   <title>Simple ASP.NET Page</title>
   <script runat="server">

      Sub SayHello()

         Response.Write("Hello, World!")

      End Sub

   </script>
</head>
<body>

<% SayHello %>

</body>
</html>

           
       








Related examples in the same category

1.Page level procedure (VB.net)
2.Define function to change 'HR' length (C#)
3.Function Parameter passed by Reference (C#)
4.Function Parameter passed by Value (C#)
5.Using out Parameters (C#)
6.Simple function without parameters (C#)
7.Define and call function (C#)
8.Call function (C#)
9.Function local variable (C#)