title: Loading repeater when binding gridview in asp.net
body: <p>I have a gridview like this:</p>
  
  <pre><code>&lt;asp:GridView ID="gv1" AutoGenerateColumns="false" BorderWidth="0" runat="server" &gt;
     &lt;Columns&gt;
      &lt;asp:TemplateField&gt;
          &lt;ItemTemplate&gt;
           &lt;span style="font-family:Tahoma; font-size:14px;"&gt;
              &lt;u&gt; &lt;a href="&lt;%#DataBinder.Eval(Container.DataItem,"ShUrl")%&gt;"&gt;
                      &lt;%#DataBinder.Eval(Container.DataItem,"PostTitle")%&gt;
              &lt;/a&gt;
              &lt;/u&gt; 
           &lt;br /&gt;
          &lt;/span&gt;
  
               &lt;asp:Repeater ID="rp1"  runat="server"&gt;
                       &lt;HeaderTemplate&gt;
                              &lt;ul&gt;     
                       &lt;/HeaderTemplate&gt;
                       &lt;ItemTemplate&gt;
                             &lt;li &gt;
                              &lt;a href="&lt;%# Eval("TUrl")%&gt;"&gt; &lt;%# Eval("TagName")%&gt;&lt;/a&gt;
                             &lt;/li&gt;     
                       &lt;/ItemTemplate&gt;
                       &lt;FooterTemplate&gt;
                              &lt;/ul&gt;     
                       &lt;/FooterTemplate&gt; 
                 &lt;/asp:Repeater&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:TemplateField&gt;
  
     &lt;/Columns&gt;
  
  
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>Now I am able to load successfull ShUrl and PostTitle. I am bringing titleId from the database also. 
  Now as usual, a post might have several tag. So I want to load the repeater for the particular titleId.</p>
  
  <p>On server side, I am simply binding the gv1 from the datable.
  Now how to load tags for the titleid:</p>
  
  <p>I have already written the function on the server side, might help you all to guide me:</p>
  
  <pre><code>  private void LoadtagList(int titleId)
      {
       // calling DAL
          rp1.DataSource = db.GetAllTagsForPost(titleId);
          rp1.DataBind();
      }
  </code></pre>