hey guys!
at the itemcreated event of listview,i am finding the linkbutton like this:
LinkButton lnkbutton = (LinkButton)e.Item.FindControl("lnkMessage");
and then i want to add attribute to this linkbutton and i am doin it like this:
lnkbutton.Attributes.Add("OnClick", "Response.Redirect(~/Test/download.aspx?id="+ dt.Rows[i]["id"]");");
but some syntax error is coming...can somebody help me out?
thanks in advance
Thanks and Regards,
Hoosha Boosha