Possible to DataBind to a SPListItem URL?
<p>I have a ListView that I am binding to a SPList.  In this list view I would like to have a link to each SPListItem.  </p>

<p>Microsoft has conveniently decided that the <code>URL</code> member of an SPListItem should be a mysterious link that does not work.  After some research I found some other people that had run into this and used the following work around:</p>

<pre><code>listItem.ParentList.Forms[PAGETYPE.PAGE_DISPLAYFORM].Url + "?ID=" + listItem.ID
</code></pre>

<p>I attempted to shoe horn this into my ListView ItemTemplate and it almost works (using 0 instead of a PAGETYPE):</p>

<pre><code>        &lt;ItemTemplate&gt;
            &lt;a id="a_ItemLink" href="&lt;%# DataBinder.GetIndexedPropertyValue(((SPListItem)Container.DataItem).ParentList.Forms, "[0].Url")  + "?ID=" + Eval("ID") %&gt;" runat="server"&gt;&lt;%# Eval("Title") %&gt;&lt;/a&gt;&lt;br /&gt;
        &lt;/ItemTemplate&gt;
</code></pre>

<p>The issue that GetIndexedPropertyValue sets my links to something like this:</p>

<pre><code>http://mySpSIte/sites/CDA/SitePages/Microsoft.SharePoint.SPForm?ID=1
</code></pre>

<p>I'm not sure why it would include the <code>Microsoft.SharePoint.SPForm</code> part, but obviously this is not working.  Has anyone successfully DataBound to a SPListItem and extracted the URL?  Am I doing something wrong above?</p>
