0
[WebMethod]
public static string DeletePrescription(int PrescriptionId)
{
BusinessLogicLayer objBusiness = new BusinessLogicLayer();
SanatanJeevanBusinessObjects.Prescription objPrescription = new SanatanJeevanBusinessObjects.Prescription();
objPrescription.PrescriptionId = Convert.ToInt32(PrescriptionId);
objBusiness.DeletePrescriptionBAL(objPrescription);
DataSet ds = new DataSet();
ds = objBusiness.GetPrescription(objPrescription);
listPreDetails.DataSource = ds;
listPreDetails.DataBind();
return "success";
}
喜, ajaxcalling我使用AJAX功能刪除行刪除表中的行後綁定列表視圖中的數據。請幫幫我。如何綁定列表視圖,而在的WebMethod
您無法訪問靜態方法中的控件。 – Mairaj