By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,658 Members | 1,501 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,658 IT Pros & Developers. It's quick & easy.

Missing controls inside Panel control

P: n/a

I'm trying to essentially replicate a process that I had working well
in classic ASP.

I dump records within an HTML table to the web page. Within each
record are textboxes and/or radio buttons and/or checkboxes for data
entry. I want to process the entire page in one post.

I've managed to create a Panel control and add the web controls to
that. It has to be dynamic because I don't know how many there will be
at design time. Here's a code snippet of how I'm adding a text box:

Protected WithEvents pnlQuestions As _
System.Web.UI.WebControls.Panel 'from the generated code region

Dim newTextBox As New System.Web.UI.WebControls.TextBox
newTextBox.ID = "txbQ123"
The problem I having is that when I submit the form, in the post, it's
saying the Panel's controls has 0 items. Here's my code snippet:

Dim itemPanelControl As Control
For Each itemPanelControl In Me.pnlQuestions.Controls

How do I get to the controls in my panel to process them in my post?


Scott S.

Nov 22 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.