Referencing controls within a Formview

M

msch-prv

Sorry to bother. This is somewhat related to a post I made today. But I
am really stuck!

Is it possible to directly reference a control within a form view? For
example, is it possible to assign the text attribute of a control using
a control that is databound to a db? Or, must that be done via a
specific script?

I created an script using a FindControl("lbl1"), Label) to update label
controls after the form is submitted. What I would like to do is use a
similar approach to initialize all unbound labels at binding time by
looking up the values of the bound controls.

This is fairly trivial in VBA (the control source of a textbox can be
easily assigned to another textbox control). Surely there must be some
way of doing this or am I mistaken?

TIA, Mark
 
M

msch-prv

The data can be updated in the formview's DataBound event. But it is a
really code intensive. Isn't there a more elegant approach?
 

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,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top