<asp:listview id="ListView1" runat="server" xmlns:asp="#unknown">
style="vertical-align:bottom;" DataSourceID="ObjectDataSource1">
<layouttemplate>
<table><tr runat="server" id="itemPlaceholder"></tr></table>
</layouttemplate>
<itemtemplate runat="server">
<div class="spromo">
<div id="<%# ("prm-hp_n") + (Container.ItemIndex + 1).ToString()+"n")%>" class="slide" style="display:none;">
<div class="prm_slide">
<a href="<%# Eval("ID","nviewer.aspx?siHd={0}") %>" data-alt="<%# Eval("Title") %>" data-src="<%# Eval("thmbImg") %>" onclick="return sl(this,'','prm-hp-img');"></a>
</div>
<div class="prm_right">
<div class="prm_txt">
<h2>
<a href="<%# Eval("ID","nviewer.aspx?siHd={0}") %>" onclick="return sl(this,'','prm-hp');">'<%# Eval("ID","nviewer.aspx?siHd={0}") %>'</a>
</h2>
</div>
</div>
</div>
</div>
</itemtemplate>
</asp:listview>
paste this code and see idz will generated in this way id="prm-hp_n1s" , id="prm-hp_n2s" , id="prm-hp_n3s" to id="prm-hp_n9s"