1.) Instead of defining GetValue and SetValue methods on the control, define a Value property, like this:
Public Property Get Value() As Integer
GetValue = CwKnob.Value
End Property
Public Property Let Value(val As Integer)
CwKnob.Value = Value
lblValue.Caption = CwKnob.Value
End Property
Once you have a property, you should be able to set it via param tags. Alternatively, you could call the method in the page's load event.
2.) One thing you could do is code sign your control. See
Introduction to Code Signing for more information. Once your control is code signed, users would get a p
rompt the first time they access the page. If they specify that they trust the publisher (you), the control would be installed and the control should work the next time they access the page.
- Elton