postback in asp doesn't refresh control value
<p>I have a div(runat=server) that contain repeater,this repeater is getting is value from datatable</p>

<p>when the datatable is empty I do this line of code in asp .net function</p>

<pre><code>divname.innerHTML="&lt;img src="...&gt;"
</code></pre>

<p>on this page there is also a asp:button that fill the datatable with values.
when pressing the button ,the above line isn't excute,the page offcourse is doing postback, but the div content isn't changing back to his original value(the repeater).</p>

<p>What do I have to do in the postback in order to force the div to get his original values?</p>

<p>This is code example:</p>

<pre><code>     sub page_load(..
if ispostback=false then
         run_div()
end if
        end sub

        sub run_div()

    if datatable.Rows.Count=0 then
    divname.innerHTML="&lt;img src="...&gt;"


    end if
    end sub


sub filldata(....

fill datatable
 repeater.datasource=...
    repeater.databind
run_div()

end sub



    html look like this

    &lt;div runat=servver id=divname&gt;&lt;asp:repeater&gt;.....
    &lt;asp:button onclick="filldata"&gt;
</code></pre>

<p>Thanks for any help</p>
