mouseover in .ascx

  • Thread starter lukas yoong via .NET 247
  • Start date
L

lukas yoong via .NET 247

hi guys,

thanx for reading my messsage. currently i am doing a dotnet development project on database management system. The problem i facing now is the mouseover image-changing thing. i have implement this code in webform(.aspx):
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ImageButton1.Attributes.Add("onMouseOver", "document.all.ImageButton1.src='images/About.jpg';")
ImageButton1.Attributes.Add("onMouseOut", "document.all.ImageButton1.src='images/About_over.jpg';")
End Sub

it is working greatly. but when i put this code in baner.ascx, it is not working at all.

hav anybody got any solutions for this?

have a nice day.
 

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
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top