Passing a reference to a User Control to a class in ASP2.0

C

Charlie@CBFC

Hi:

I'm trying to pass a reference to a user control to a class. The user
control exposes its elements via properties. When I inspect parameter (user
control is passed to class using "this") I can see it's data in debugger,
but no way to access it in class code. I have tried casting to control
type, but it says type or namespace can't be found. Any ideas?

Charlie
 
B

bruce barker \(sqlwork.com\)

define a base class the control inherits from that defines the properties,
or better yet, have the control implement an interface with the desired
properties, then cast the control to the interface in the class.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top