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

Dynamic Controls and MasterPage Problem

P: n/a
I have a page that creates dynamic textboxes based on the number of
fields a user chooses to fill out. Basically, I am able to create the
controls via this method (with other details):

Dim txtbxTextBox as New Textbox()
Form.Controls.Add(txtbxTextBox1)

Then, when the page is submitted (via Postback) I grab the value in the
textbox like so:

Dim strString As String
strString = Request.Form("txtbxTextBox")

This process worked great when the page was standalone. However, when I
move to a Content/MasterPage setup, the MasterPage "form" seems to be
interfering with the ability of my code to retrieve the value in the
dynamic control.

Are there any ideas on why this is happening or how to work-around the
problem? Should I be doing the request at a different level since the
Form resides in the MasterPage now?

I already tried re-creating the textboxes on Page_Load and Page_Init to
no avail. The values just come back as 0 every time.

Feb 23 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Does anyone have any clues about this?

Feb 24 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.