title: Find a repeater inside a unordered list inside a master page?
body: <p>I have loaded my html template into my master page and then to bind category to database.
  I have used this coding.</p>
  
  <pre><code>&lt;ul class="categories"&gt;
              &lt;li id="categoryItem"&gt;
                  &lt;h4&gt;Categories&lt;/h4&gt;
                  &lt;ul class="categories"  id="categorylist"&gt;            
                      &lt;asp:Repeater ID="repCategories" runat="server"&gt;
                          &lt;HeaderTemplate&gt;&lt;ul&gt;&lt;/HeaderTemplate&gt;
                          &lt;ItemTemplate&gt;
                              &lt;li&gt;
                              &lt;asp:HyperLink ID="hyperCategories" runat="server"&gt;&lt;%#Eval("CategoryName")%&gt;&lt;/asp:HyperLink&gt;
                              &lt;/li&gt;
                          &lt;/ItemTemplate&gt;
                          &lt;FooterTemplate&gt;&lt;/ul&gt;&lt;/FooterTemplate&gt;
                      &lt;/asp:Repeater&gt;
                  &lt;/ul&gt;
              &lt;/li&gt;
  </code></pre>
  
  <p>and try to bind this repeater to my database by doing coding on master.cs page. </p>
  
  <pre><code> if (!IsPostBack)
          {
              DataSet ds = new ViewAction().GetAllProductCategoryData();
              repCategories.DataSource = ds;
              repCategories.DataBind();
          }
  </code></pre>
  
  <p>But it is showing the error that </p>
  
  <p><code>"The name repCategories does not exist in the current context"</code> </p>
  
  <p>Why it is showing this error help me solve this. Please</p>