numericupdown.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;

public partial class NumericUpDown_NumericUpDown : CommonPage
{
    /// <summary>
    /// Handles submit button to update the label
    /// </summary>
    /// <param name="sender">source</param>
    /// <param name="e">argument</param>
    protected void Button1_Click(object sender, EventArgs e)
    {
        Label1.Text = string.Format("Value: <b>{0}</b><br>Month: <b>{1}</b><br>Random Value: <b>{2}</b><br>Value: <b>{3}</b>",
            TextBox1.Text, TextBox2.Text, TextBox3.Text, TextBox4.Text);
    }
}

⌨️ 快捷键说明

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