I believe you need to create a custom control for this so that it could
be added to the toolbox. I know you can then create and set properties
for your control as you would for any class you create for example:
I did this recently with a user control (which cannot be added to a
toolbox*) but featuring other controls that needed properties set and
here's how I did it: (I don't have the code with me so working from
memory) This happens to be a text box that the user enters something in
that is saved to a database and then the control is repopulated with
data from the database.
In a user control (UserControl.as cx):
Public Property AProperty() As String
Get
Return Me.txtBox.text
End Get
Set(ByVal Value As String)
txtBox.text = Value
End Set
End Property
In the webform:
If Not IsDBNull(drCust omer("AProperty ")) Then
UserControl.Sta te = drCustomer("APr operty")
End If
I was able create and set other properties for the controls (background
colors, borders, etc) in a simliar manner. The big problem I had and
never got an answer for was dropdownlists.. .wasn't able to work with
them.
*Here is a MS link on developing controls:
http://msdn.microsoft.com/library/de...mentbasics.asp