G
Guest
Hi,
Is there a way to set webform controls to visible/invisible dynamically. Say
I have a textbox cann txtFirstName, I know the following statement can set it
visible:
txtFirstName.visible = true
Here is difficult part, I am tring to set the controls visible based on the
content of DataReader or DataSet. If the datareader has a row that has an
item "txtFirstName" then txtFirstName should be visible.
Sure I can use a big select statement to do this:
select case fieldName
case "txtFirstName":
txtFirstName.visible = true
'about another 50 case statements follow
end select
But is there a better way?
TIA
Is there a way to set webform controls to visible/invisible dynamically. Say
I have a textbox cann txtFirstName, I know the following statement can set it
visible:
txtFirstName.visible = true
Here is difficult part, I am tring to set the controls visible based on the
content of DataReader or DataSet. If the datareader has a row that has an
item "txtFirstName" then txtFirstName should be visible.
Sure I can use a big select statement to do this:
select case fieldName
case "txtFirstName":
txtFirstName.visible = true
'about another 50 case statements follow
end select
But is there a better way?
TIA