try as shown in the following example:
<asp:datalist onitemcommand="itemcommand" id="DataList1" runat="server" datakeyfield="name" width="600px" xmlns:asp="#unknown">
DataSourceID="SqlDataSource1" RepeatColumns="3" HorizontalAlign="Center">
<itemtemplate>
<asp:linkbutton id="lnk" cssclass="Name" commandname="lnk1" runat="server" text="xyz"></asp:linkbutton><br />
</asp:label>
</itemtemplate>
</asp:datalist>
In code behind file i have used follows:--
protected void itemcommand(object source, DataListCommandEventArgs e)
{
if (e.CommandName.Equals("lnk1"))
{
Response.Redirect("Acer.aspx");
}
}