ASP.NET Repeater Control linking to detailed view via QueryString parameters
<p>I have a Repeater Control using an XMLDataSource to produce a list of movies (Movies.aspx). I need to link to a detailed page via query parameters like MovieDetails.aspx?movie=Matrix. What control do I use on the MovieDetails.aspx page to render a single movie, preferably using ItemTemplate and my own HTML. </p>

<p>My data source:</p>

<pre><code>&lt;asp:XmlDataSource ID="MoviesXmlDataSource" runat="server" 
    DataFile="~/Movies.xml" XPath="movies/movie"&gt;&lt;/asp:XmlDataSource&gt;
</code></pre>

<p>I read the StackOverflow post <a href="http://stackoverflow.com/questions/1489517/send-string-with-querystring-in-repeater-control-in-asp-net">Send string with QueryString in Repeater Control in ASP.net</a> and list my items via a repeater like this:</p>

<pre><code>    &lt;asp:Repeater ID="Repeater1" runat="server" DataSourceID="MoviesXmlDataSource"&gt;
    &lt;HeaderTemplate&gt;
        &lt;ul class="productlist"&gt;
    &lt;/HeaderTemplate&gt;

    &lt;ItemTemplate&gt;
        &lt;li&gt;
            &lt;a href="MovieDetails.aspx?movie=&lt;%#Eval("title")%&gt;"&gt;&lt;/a&gt;
            &lt;img src="Images/&lt;%#Eval("image") %&gt;" /&gt;&lt;br/&gt; 
            &lt;b&gt;&lt;%#Eval("title") %&gt;&lt;/b&gt;
        &lt;/li&gt;
    &lt;/ItemTemplate&gt;

    &lt;FooterTemplate&gt;
        &lt;/ul&gt;
    &lt;/FooterTemplate&gt;
&lt;/asp:Repeater&gt;
</code></pre>

<p>On my MovieDetail.aspx I get the query string parameter as expected. However, I don't know how to fetch this item from my XMLDataSource and render it nicely. I figured out how to do this using GridView and then render a DetailsView depending on what you click in the grid, but it's so ugly. Repeater lets me specify my own HTML, but only for a list and not a single item. </p>
