Ejemplo n.º 1
0
        protected void gridList_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            lblMessage.Text = "";
            int UID = int.Parse(gridList.DataKeys[e.RowIndex]["UID"].ToString());

            logger.Debug("deleting board message - " + UID.ToString());

            DS_Main.DeleteParameters["UID"].DefaultValue = UID.ToString();
            DS_Main.Delete();

            //logger.Debug("binding news ");
            BindData();
        }
Ejemplo n.º 2
0
        protected void gridList_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            lblMessage.Text = "";



            int UID = int.Parse(gridList.DataKeys[e.RowIndex]["UID"].ToString());

            string script = "<script type=\"text/javascript\">alert('deleting board message - " + UID.ToString() + "');</script>";

            ClientScript.RegisterClientScriptBlock(this.GetType(), "Alert", script);

            logger.Debug("deleting board message - " + UID.ToString());

            DS_Main.DeleteParameters["UID"].DefaultValue = UID.ToString();
            DS_Main.Delete();

            //logger.Debug("binding news ");
            BindData();
        }