⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 updatepanelanimation.aspx.cs

📁 AJAX 应用 实现页面的无刷新
💻 CS
字号:
// (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.Drawing;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UpdatePanelAnimation : Page
{
    /// <summary>
    /// Turn partial rendering on for this page (since the master turns it off)
    /// </summary>
    protected override void OnPreInit(EventArgs e)
    {
        base.OnPreInit(e);
        ScriptManager manager = ScriptManager.GetCurrent(Page);
        if (manager != null)
            manager.EnablePartialRendering = true;
    }
    
    /// <summary>
    /// Change the value of the textbox depending on whether or not OnUpdating fired
    /// </summary>
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        txtValue.Text = "Updated";
    }
}

⌨️ 快捷键说明

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