protected void Gvaddproduct_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName.ToUpper() == "DELETE")
{
int? DeleteProductStatus;
GridViewRow row = (GridViewRow)((LinkButton)e.CommandSource).NamingContainer;
int index = row.RowIndex;
objhatcheryPL.sno1 = Convert.ToInt16(Gvaddproduct.DataKeys[index].Value);
DeleteProductStatus = objhatcheryBAL.ProductDetDelete(objhatcheryPL);
FillProductDetails();
if (DeleteProductStatus.Equals(1))
{
ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "UpdateDetails", "alert('Deleted Successful');", true);
}
}
}
이 코드를 사용하면 행 삭제가 직접 이루어지지 않습니다. 무엇이 잘못 되었습니까?
gvaddproduct_RowDeleting () 이벤트를 추가하지 않은 것 같습니다. 코드를 다시 확인하십시오.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다