G
Guest
Does anyone know how to set the text property for a control that is loaded
into the Control class in a web form? The text property exists for Windows
forms but not for web pages? I'd like to set the control.text property as
below.
Thanks,
Tim
foreach (Control ctrl in
MultiView1.Views[MultiView1.ActiveViewIndex].Controls)
{
if (ctrl is Label) {
if (gvRow.Cells[4].Text != null) {
//the line below errors since there is no text
property for ctrl
ctrl.Text = gvRow.Cells[4].Text;
ctrl.Visible = true;
}
else
ctrl.Visible = false;
}
into the Control class in a web form? The text property exists for Windows
forms but not for web pages? I'd like to set the control.text property as
below.
Thanks,
Tim
foreach (Control ctrl in
MultiView1.Views[MultiView1.ActiveViewIndex].Controls)
{
if (ctrl is Label) {
if (gvRow.Cells[4].Text != null) {
//the line below errors since there is no text
property for ctrl
ctrl.Text = gvRow.Cells[4].Text;
ctrl.Visible = true;
}
else
ctrl.Visible = false;
}