Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

The Controls Collection is Empty for my ASP.NET Panel on Postback

$
0
0

Hi, Everybody!

I have this ASP.NET panel (id="myPanel" runat="server") onto which I dynamically add DIVs, TABLEs, TRs, TDs, INPUTs (e.g., radio buttons, text boxes, etc.), SELECTs, etc.  The page is rendered beautifully.

However, on postback, the Controls collection of "myPanel" contains NO controls (Count = 0).  Setting the ID property and setting the "runat" attribute to "server" for each control does not work.

What am I missing?...  HELP!

FYI...  The panel is inside a user control (i.e., *.ascx file).

Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>