linkbutton in a repeater c#
<p>I have a database where i am displaying books. Main page displays 2 links category( fiction, technical)
You click on technical then it takes you to a new page where it queries the technical books</p>

<p>From there i am using a repeater to display those technical books.. including the picture.</p>

<p>My question is i want to be able to make the name a link and when the user clicks that link some variable knows the name and i am taken to a new page where then i could use that variable to query the database to display the right information again. Im not sure if a variable is the way to go. </p>

<p>Or, if query string could work - something like:</p>

<pre><code>Server.UrlDecode(Request.QueryString["BookName"]);
</code></pre>

<p>So, i guess there are 2 questions..</p>

<ol>
<li><p>How do i make name a link and navigate to the new page "Book.aspx"</p></li>
<li><p>how can i save that name that is clicked so the book page would know it(name) so i could use that name in a query ?</p></li>
</ol>

<p>Here is what i have..</p>

<pre><code>&lt;h2&gt;Books in category&lt;/h2&gt;
    &lt;p&gt;&amp;nbsp;&lt;/p&gt;

        &lt;asp:Repeater ID="Repeater1" runat="server"&gt;
        &lt;ItemTemplate&gt;
       &lt;div&gt;
         &lt;img src='/images/&lt;%# DataBinder.Eval(Container.DataItem, "Image") %&gt;'  onclick="Navigate()"
          alt="" align="left" style="height:100px;width:100px;border:1px solid black"   /&gt;
      &lt;/div&gt;
      &lt;table  class="vertaligntop"&gt;
      &lt;tr &gt;
      &lt;td &gt;
 &lt;%# DataBinder.Eval(Container.DataItem, "BookName") %&gt;
 &lt;br /&gt;
 &lt;%# DataBinder.Eval(Container.DataItem, "BookDescription") %&gt;
 &lt;br /&gt;
 &lt;%# DataBinder.Eval(Container.DataItem, "ISBN") %&gt;
 &lt;br /&gt;
  &lt;%# DataBinder.Eval(Container.DataItem, "Author") %&gt;
 &lt;br /&gt;
 &lt;%# DataBinder.Eval(Container.DataItem, "CategoryName") %&gt;
 &lt;br /&gt;
  &lt;%# DataBinder.Eval(Container.DataItem, "Publisher") %&gt;
 &lt;br /&gt;
  &lt;%# DataBinder.Eval(Container.DataItem, "Rating") %&gt;
 &lt;br /&gt;
 &lt;%# DataBinder.Eval(Container.DataItem, "Price") %&gt;
 &lt;br /&gt;
 &lt;/td&gt;
</code></pre>

<p>
     </p>
