protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "delRecord") { int nid = Convert.ToInt32(e.CommandArgument); NewsInfoService.Delete_NewsInfo(nid); binddata(Convert.ToInt32(((DataTable)ViewState["dtType"]).Rows[0]["T_ID"])); } }