<asp:DataList ID="show_Area" runat="server" >
<ItemTemplate>
<div>
<a onclick="" href="javascript:myclick(<%# Container.ItemIndex %> )"><%#Eval("title") %></a>
<span><%# Container.ItemIndex %></span>
</div>
</ItemTemplate>
</asp:DataList>
private void DataList1_ItemCommand(object source, System.Web.UI.WebControls.DataListCommandEventArgs e)
{
if ( e.CommandName == "select" )
{
DataList1.SelectedIndex = e.Item.ItemIndex;
BindData();
}
}