Point to control in default mode of FormView asp.net

Have a FormView with 3 different modes (ReadOnly as default, Insert and Update). How to point to control (text box,dropdown list, check box, etc.) in code behind if the control is placed in ReadOnly mode (item template).
Who is Participating?
strickddConnect With a Mentor Commented:

This will find the control in the currently active FormView Template. If you specifically need the one in the ReadOnly view, you either have to set it to ReadOnly or use a different control.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.