A simple question about properties

C

Colin Robinson

I have an asp user control that contains amonst other things a label and a
Textbox

Properties for each control work as expected for each control but I want the
property to update the contents of the textbox and label on the web page
containing the control but i cant get past an error stating that no object
textbox1 exists.


I have tried assigning the textbox1.text = value in the set of the property
declaration, and also in the load event of the user control.

Intellisennse works from the web page to find the controls properties but
thats as far as i can get. the funny thing is if i set the urlimage of an
imagecontrol in the property assignment the control refreshes.

Can anyone explain this behaviour please?

Colin
 
R

Robert Koritnik

Caould you supply some code? Property implementation and declarations on the
user control?
 
C

Colin Robinson

its sorted but thanks for the offer

I needed the loadcontrol() method on my object declaration
 

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

No members online now.

Forum statistics

Threads
474,125
Messages
2,570,748
Members
47,302
Latest member
MitziWragg

Latest Threads

Top