R
RGF
Hi, I am using server controls (textbox, dropdownlist, calendar)
inside of a form view, it seems that the .Net framework (VB.Net & Net
Frame Work 2.0) makes it difficult to access the control properties
when embedded inside of a FormView control.
What I am trying to do is to enable or disable a textbox control
programatically by accessing the property of the control, along the
lines of:
textbox1.Enable = false
However, when the textbox control is embedded in a Formview nested in
the EditItemTemplate then the textbox is Not accessible. I would
think that the following syntax should work, but it does not:
FormView1.EditItemTemplate.Textbox1.Enable = false
Could anyone suggest the proper syntax for me to Get/Set the
properties of controls embedded inside of a formview while using
VB.Net & .Net Frame Work 2.0?
-r
inside of a form view, it seems that the .Net framework (VB.Net & Net
Frame Work 2.0) makes it difficult to access the control properties
when embedded inside of a FormView control.
What I am trying to do is to enable or disable a textbox control
programatically by accessing the property of the control, along the
lines of:
textbox1.Enable = false
However, when the textbox control is embedded in a Formview nested in
the EditItemTemplate then the textbox is Not accessible. I would
think that the following syntax should work, but it does not:
FormView1.EditItemTemplate.Textbox1.Enable = false
Could anyone suggest the proper syntax for me to Get/Set the
properties of controls embedded inside of a formview while using
VB.Net & .Net Frame Work 2.0?
-r