Modifying Controls in a DynamicInsert

R

Ross Culver

I working, for the first time, with DynamicInserts on a Dynamic Data Web
Form.

I know that I can stylize the dynamicinsert by adding a Detailsview and
setting the dynamicinsert controlid to that of the detailsview. But I can't
figure out how to identify the controls in code.

For instance, if the first field in my dynamicinsert/detailsview is a
textbox. How can I set the text value of that box on page load? I'm trying
the following:
CType(Me.DetailsView1.TemplateControl.FindControl("0").FindControl("txtPurchaseOrder"),
TextBox).Text = "487587"

am I close?

Thanks, Ross
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top