protected void ASPxButton1_Click(object sender, EventArgs e) { DisplayAttachmentControl d = new DisplayAttachmentControl(); d.DisplayData(5, null); }
public void DisplayData(int? documentId, int? ticketId) { Attachments attachment = new Attachments(); dt = attachment.GetAttachmentByDocumentIDorTicketID(documentId, null); ASPxGridView1.DataSource = dt; ASPxGridView1.DataBind(); }
Quote:System.NullReferenceException: Object reference not set to an instance of an object.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)