ImageURL issues!!!!!!!!

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!
 
S

Shiva

I guess the property name you have defined is strHomeURL, not strHome as
used in the code?

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!
 
J

John Espinosa

I meant for that property name to be the same....

It still does not work. Is there a solution to this?
 

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,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top