how to get top record from datalist
<p>how to get top of record by name in datalist..</p>

<pre><code>&lt;asp:DataList ID="dlOtherTrends" runat="server" OnItemDataBound="dlOtherTrends_OnItemDataBound"&gt;
                &lt;ItemTemplate&gt;
                    &lt;li&gt;&lt;a href="PostDetail.aspx?CatID=&lt;%# Eval("CATID") %&gt;&amp;# &lt;%# Eval("NAME") %&gt;"&gt;&lt;img id="imgPost" runat="server" width="70"&gt;&lt;/a&gt;
                    &lt;span&gt;&lt;a href="PostDetail.aspx?CatID=&lt;%# Eval("CATID") %&gt;&amp;# &lt;%# Eval("NAME") %&gt;"&gt;&lt;asp:Label ID="lblPostName" runat="server"&gt;&lt;/asp:Label&gt;&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
                &lt;/ItemTemplate&gt;
                &lt;/asp:DataList&gt;
</code></pre>

<p>now this is the list page..</p>

<pre><code>&lt;asp:DataList ID="dlPost" runat="server" OnItemDataBound="dlPost_OnItemDataBound"&gt;
                &lt;ItemTemplate&gt;
                    &lt;article&gt;
                        &lt;h1&gt;&lt;asp:Label ID="lblPostName" runat="server" Text="Label"&gt;&lt;/asp:Label&gt;&lt;/h1&gt;&lt;a name="&lt;%# Eval("NAME") %&gt;"&gt;&lt;/a&gt;
                        &lt;span class="posted"&gt;Posted on &lt;asp:Label ID="lblPostDate" runat="server" Text="Label"&gt;&lt;/asp:Label&gt; by &lt;a href="#"&gt;Editor&lt;/a&gt;&lt;/span&gt;
                        &lt;p&gt;&lt;img id="imgPost" runat="server" width="540"&gt;&lt;/p&gt;
                        &lt;p&gt;&lt;div id="DivDescr" runat="server"&gt;&lt;/div&gt;&lt;/p&gt;
                        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
                        &lt;!-- AddThis Button BEGIN --&gt;
                        &lt;div class="addthis_toolbox addthis_default_style "&gt;
                            &lt;a class="addthis_button_facebook_like"&lt;%="fb:like:layout"%&gt;="button_count"&gt;&lt;/a&gt;
                            &lt;a class="addthis_button_tweet"&gt;&lt;/a&gt;
                            &lt;a class="addthis_button_google_plusone"&lt;%="g:plusone:size"%&gt;="medium"&gt;&lt;/a&gt;
                            &lt;a class="addthis_counter addthis_pill_style"&gt;&lt;/a&gt;
                        &lt;/div&gt;
                        &lt;script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4fc6ff7e30646c29"&gt;&lt;/script&gt;
                        &lt;!-- AddThis Button END --&gt;
                    &lt;/article&gt;
                &lt;/ItemTemplate&gt;
            &lt;/asp:DataList&gt;
</code></pre>
