FullCalendar3.8事件删除

Event_Del.ashx

内容:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Data;


namespace AppTask
{
    /// 
    /// taskdelete 的摘要说明
    /// 
    public class task_del : IHttpHandler
    {

        public static SqlConnection AppConn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["Default"].ToString());
        public void ProcessRequest(HttpContext context)
        {
            string id = context.Request["id"];
            //SqlConnection con = new SqlConnection(@"Password=tac26901333;Persist Security Info=True;User ID=sa;Initial Catalog=DocumentManagement;Data Source=.");
            string dfsdf = "DELETE FROM [AppCube].[dbo].[atTasks]  where ID=" + id + "";

            SqlDataAdapter da = new SqlDataAdapter(dfsdf, AppConn);
            DataSet ds = new DataSet();
            da.Fill(ds);
            AppConn.Close();
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}


你可能感兴趣的:(FineUI开发实践)