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

📄 addarticle.aspx.cs

📁 Asynchrounous pages with Ajax to refresh the page without postback
💻 CS
字号:
using System;
using System.Data;
using System.Web.UI;

public partial class AddArticle : Page
{
  protected void Add_Click(object sender, EventArgs e)
  {
    // Retrieve the cached DataTable.
    DataTable dt = (DataTable)Cache["Headlines"];

    // Add a row for the posted title.
    dt.Rows.Add(new object[] {DateTime.Now, ArticleTitle.Text});

    // In real use, save the added data to a database
    //  or other underlying data store here.

    // Re-cache the updated DataTable.
    Cache["Headlines"] = dt;
  }
}

⌨️ 快捷键说明

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