J
Jason MacKenzie
The question is this:
Lets say I want to expose the selectedvalue of a dropdownlist control in a
web control library.
Public Property SelectedValue() As String
Get
Return me.ddlTest.selectedValue
End Get
Set(ByVal Value As String)
End Set
End Property
I add the ddlTest control in the CreateChildControls override (I'm
inheriting from WebControls). Since the CreateChildControls method fires
after the attempt to read the property I get an "Object reference not set to
an instance of an object. ".
Obviously my approach is wrong and any help is appreciated.
Jason MacKenzie
Lets say I want to expose the selectedvalue of a dropdownlist control in a
web control library.
Public Property SelectedValue() As String
Get
Return me.ddlTest.selectedValue
End Get
Set(ByVal Value As String)
End Set
End Property
I add the ddlTest control in the CreateChildControls override (I'm
inheriting from WebControls). Since the CreateChildControls method fires
after the attempt to read the property I get an "Object reference not set to
an instance of an object. ".
Obviously my approach is wrong and any help is appreciated.
Jason MacKenzie