<asp:HyperLinkField Text="Print Pres" DataNavigateUrlFields="PatientID" DataNavigateUrlFormatString="~/Patient/Report/DrugPrescription.aspx?PatientID={0}" Visible='<%#Eval("IsDrugPrescribed") %>'> give build time error Databinding expressions are only supported on objects that have a DataBinding event. System.Web.UI.WebControls.HyperLinkField does not have a DataBinding event. Please sort it out
Your problem is in <%#Eval("IsDrugPrescribed") %>'>. you might has more than one rows that are coming against IsDrugPrescribed