local.aspx

来自「asp.net1.1入门经典C#.2003」· ASPX 代码 · 共 33 行

ASPX
33
字号
<script Language="c#" runat="server">
  void Page_Load()
  {
    message1.Text="";
    message1.Text+="<BR />Calling Function 1...";
    Function1();
    message1.Text+="<BR />Calling Function 2...";
    Function2();
    message1.Text+="<BR />Calling Function 1...";
    Function1();
  }
  void Function1()
  {
    string Different = 
                "<i>Hello I'm the variable Different in Function 1</i>";
    message1.Text+= Different;
  }
  void Function2()
  {
    string Different = 
                "<b>Hello I'm the variable Different in Function 2</b>";
    message1.Text+= Different;
  }
</script>
<html>
<head>
<title>Scope</title>
</head>
<body>
<asp:label id="message1" runat="server"/>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?