confirmbutton.aspx.cs

来自「一个包含AJAX所有功能的示例网站以及源代码,非常好学习!」· CS 代码 · 共 21 行

CS
21
字号
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Permissive License.
// See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.
// All other rights reserved.


using System;
using System.Web.UI;

public partial class ConfirmButton_ConfirmButton : CommonPage
{
    /// <summary>
    /// Handle the click of either control
    /// </summary>
    /// <param name="sender">source</param>
    /// <param name="e">arguments</param>
    protected void Button_Click(object sender, EventArgs e)
    {
        Label1.Text = "You clicked the " + ((Control) sender).ID + " at " + DateTime.Now.ToLongTimeString() + ".";
    }
}

⌨️ 快捷键说明

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