R
rodchar
hey all,
i was working on a formview and when i pressed my custom edit button to put
the formview in edit mode, i then, recursively loop thru the page controls
and see all the controls such as textboxes and other input controls.
well, when i press my custom New button to put the formview in insert mode
(using FormView1.ChangeMode(FormViewMode.Insert) i see on the screen the
input controls as normal, but when i loop thru the page controls as before it
only contains the label counterparts.
if i put a FormView1.DataBind() after the
FormView1.ChangeMode(FormViewMode.Insert) i can then see the proper input
controls.
what does DataBind really do behind the scenes? (i learn better with simple
analogies please)
thanks,
rodchar
i was working on a formview and when i pressed my custom edit button to put
the formview in edit mode, i then, recursively loop thru the page controls
and see all the controls such as textboxes and other input controls.
well, when i press my custom New button to put the formview in insert mode
(using FormView1.ChangeMode(FormViewMode.Insert) i see on the screen the
input controls as normal, but when i loop thru the page controls as before it
only contains the label counterparts.
if i put a FormView1.DataBind() after the
FormView1.ChangeMode(FormViewMode.Insert) i can then see the proper input
controls.
what does DataBind really do behind the scenes? (i learn better with simple
analogies please)
thanks,
rodchar