<asp:LinkButton runat="server" ID="resumelbtn" CommandArgument='<%# Eval("ResumeSource")%>' Text="downloadR" OnClick="downLoadResume"></asp:LinkButton> public void downLoadResume(object sender, EventArgs e) { string resumeId = (((LinkButton) sender).CommandArgument.ToString()); }