Function Parameter passed by Value (C#)
<%@ Page Language="C#" %> <script runat="server"> void Page_Load() { int a = 1; Increment(a); lblMessage.Text = a.ToString(); } void Increment(int Number) { Number += 1; } </script> <html> <head> <title>Demonstration of Passing a Parameter by Value</title> </head> <body> <asp:Label id="lblMessage" runat="server"></asp:Label> </body> </html>