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
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