R
Robson Carvalho Machado
Dear friends,
Is there a way to set onMouseOver and onMouseOut on dynamic objects?
I need to create two javascript events:
onMouseOver="show_message(id)"
onMouseOut="show_message(id)"
My objects are created as follows:
Dim ID as String
ID = "hyperlink1"
Dim myHyperLink as HyperLink
myHyperLink = New HyperLink
myHyperLink.ID = ID
myHyperLink.ImageUrl = "http://localhost/img.gif"
PlaceHolder1.Controls.Add(myHyperLink)
ID = "image1"
Dim myImage as Webcontrols.Image
myImage = New WebControls.Image
myImage.ID = ID
myImage.ImageUrl = "http://localhost/"
PlaceHolder1.Controls.Add(myImage)
ID = "label1"
Dim myLabel as Label
myLabel = New Label
myLabel.ID = ID
myLabel.Text = "my label"
PlaceHolder1.Controls.Add(myLabel)
Is there a way to set onMouseOver and onMouseOut on dynamic objects?
I need to create two javascript events:
onMouseOver="show_message(id)"
onMouseOut="show_message(id)"
My objects are created as follows:
Dim ID as String
ID = "hyperlink1"
Dim myHyperLink as HyperLink
myHyperLink = New HyperLink
myHyperLink.ID = ID
myHyperLink.ImageUrl = "http://localhost/img.gif"
PlaceHolder1.Controls.Add(myHyperLink)
ID = "image1"
Dim myImage as Webcontrols.Image
myImage = New WebControls.Image
myImage.ID = ID
myImage.ImageUrl = "http://localhost/"
PlaceHolder1.Controls.Add(myImage)
ID = "label1"
Dim myLabel as Label
myLabel = New Label
myLabel.ID = ID
myLabel.Text = "my label"
PlaceHolder1.Controls.Add(myLabel)