[fix]支持新版Remoting和星尘,此时HttpConfigProvider是Remoting的ClientBase,而不是ApiHttpClient
大石头 编写于 2024-07-03 18:52:24 石头 提交于 2024-07-06 09:03:31
X
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using <#=Config.NameSpace#>;

public partial class <#=Config.EntityConnName+"_"+Table.Name#> : MyEntityList<<#=Table.Name#>>
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            btnDelete.OnClientClick = gv.GetNoSelectionAlertReference("至少选择一项!");
            btnNew.OnClientClick = win.GetShowReference("<#=Table.Name#>Form.aspx", "新增 - <#=Table.DisplayName#>");
        }
    }

    protected void btnDelete_Click(object sender, EventArgs e)
    {
        gv.DeleteSelected();
    }
}