Changing the URL of an ImageButton

J

John Espinosa

I have a user control that I need to change the ImageURL of. usercontrol B is inside of aspx page A. What is the code that I use in aspx page A to change the ImageURL of usercontrol B?

Thanks!
 
H

Hermit Dave

create a property in your usercontrol which in turn will set the imageurl
for the image button.

Control1.PropertyName = "your url here";

have a look at this page. it tells you on how to use property on user
controls from within the page
http://www.dotnetjunkies.com/Article/E1F97CE9-7834-46FA-BED9-866F720AB013.dcik

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
John Espinosa said:
I have a user control that I need to change the ImageURL of. usercontrol B
is inside of aspx page A. What is the code that I use in aspx page A to
change the ImageURL of usercontrol B?
 

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
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top