Data-bound Label in FormView
Posted on 2006-11-03
I have a label in a formview(label1) bound to a datasource.
(ref:- This label's text updates everytime a dropdown control is changed).
How do I show the value of this label outside the formview in (i) a another label (label2) on the main page or (ii) in a label in another formview?
At the moment, for (i) I have tried :-
protected override void OnInit (EventArgs e)
FormView1.ItemCreated += new EventHandler(FormView1_ItemCreated);
protected void FormView1_ItemCreated (Object sender, EventArgs e)
FormViewRow row = FormView1.Row;
Label lbl =((Label).row.FindControl("Label1");
.............For some reason Label2 remains blank with this code...