asp.net - ASP:Repeater not visible after databinding? -


i attempting create simple mobile view of website , list of product categories display on homepage... when try generate list of categories datatable kinda doesn't. nothing visible, if repeater took day off , went home.

here's code:

        dim dt datatable = categories.getmaincategories(request("mainid"))     rptcatbuttons.datasource = dt     dim catname string = categories.getmaincategoryname(request("mainid"))     'dim catbutton button = ctype(rptcatbuttons.findcontrol("btncategories"), button)      catbutton.text = catname     rptcatbuttons.databind() 

and asp:

    <asp:content id="content1" contentplaceholderid="contentplaceholder1" runat="server">     <script type="text/javascript" src="js/count.js"></script>     <asp:repeater id="rptcatbuttons" runat="server">     <itemtemplate> <div class="category-mobile" runat="server"><asp:button id="btncategories" runat="server" text="hello" class="category-mobile-button"></asp:button></div> </itemtemplate> </asp:repeater> </asp:content> 

it's pretty basic code right now, because took code different page (where generate menu) , tried here, no go i've messed around bit.

i've tried binding table in pre_init , page_init sections neither made difference (except couple of neat null object references).

assistance please?


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -