Note that there are some explanatory texts on larger screens.

plurals
  1. POUser-controls are evaluated first while loading content on scroll
    primarykey
    data
    text
    <p>I am using code <a href="http://aspsnippets.com/Articles/Load-data-while-Scrolling-Page-down-with-jQuery-AJAX-and-ASPNet.aspxwn-with-jQuery-AJAX-and-ASPNet.aspx" rel="nofollow noreferrer">HERE</a> to load my user-control on page scroll. This user control takes EVAL data from repeater. But I am getting following output:</p> <p><img src="https://i.stack.imgur.com/ULPPK.png" alt="enter image description here"></p> <p>The user controls are being loaded on top and then the table rows are loaded. I want to load each user control before its table. They all are getting loaded at the top. Why this is happening? What is the solution?</p> <p>Following is the code:</p> <pre><code>&lt;asp:Repeater ID="rptCustomers" runat="server"&gt; &lt;ItemTemplate&gt; &lt;uc1:WebUserControl runat="server" ID="WebUserControl1" city='&lt;%# Eval("City") %&gt;' /&gt; &lt;table cellpadding="2" cellspacing="0" border="1" style="width: 200px; height: 100px; border: dashed 2px #04AFEF; background-color: #B0E2F5"&gt; &lt;tr&gt; &lt;td&gt; &lt;b&gt;&lt;u&gt;&lt;span class="name"&gt; &lt;%# Eval("ContactName") %&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;b&gt;City: &lt;/b&gt;&lt;span class="city"&gt;&lt;%# Eval("City") %&gt;&lt;/span&gt;&lt;br /&gt; &lt;b&gt;Postal Code: &lt;/b&gt;&lt;span class="postal"&gt;&lt;%# Eval("PostalCode") %&gt;&lt;/span&gt;&lt;br /&gt; &lt;b&gt;Country: &lt;/b&gt;&lt;span class="country"&gt;&lt;%# Eval("Country")%&gt;&lt;/span&gt;&lt;br /&gt; &lt;b&gt;Phone: &lt;/b&gt;&lt;span class="phone"&gt;&lt;%# Eval("Phone")%&gt;&lt;/span&gt;&lt;br /&gt; &lt;b&gt;Fax: &lt;/b&gt;&lt;span class="fax"&gt;&lt;%# Eval("Fax")%&gt;&lt;/span&gt;&lt;br /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;br /&gt; &lt;/ItemTemplate&gt; &lt;/asp:Repeater&gt; </code></pre> <p>Rest of the code you can find in the link: <a href="http://aspsnippets.com/Articles/Load-data-while-Scrolling-Page-down-with-jQuery-AJAX-and-ASPNet.aspx" rel="nofollow noreferrer">http://aspsnippets.com/Articles/Load-data-while-Scrolling-Page-down-with-jQuery-AJAX-and-ASPNet.aspx</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload