Fustrating User Control

J

John Espinosa

I have a user control with an image button on it:

Public Property strHomeURL As String
Get
Return strHomeURL
End Get
Set
ibtnHome.ImageURL = Value
End Set
End Property
.....code......

<td><asp:ImageButton id="ibtnHome" runat="server" ImageURL="images/home_on.gif" height="17" width="53" /></td>

......code.....


I am trying to change the ImageURL on the user control from my page by using this subprocedure:

Sub Page_Load

UC1.strHome = "image/home.gif"
End Sub

This is not working. I am not getting the results that I wanted.....can anyone help?

Thanks!
 

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,982
Messages
2,570,189
Members
46,735
Latest member
HikmatRamazanov

Latest Threads

Top