usercontrol problems

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

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top