Changing the URL of an ImageButton

  • Thread starter Thread starter John Espinosa
  • Start date Start date
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!
 
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?
 
Back
Top