SeverControl.Attributes

P

Pradeep

Hi,

Does anyone know how to use the Attributes property of the User Control. I
want to call the JavaScript function on the "onmouseover" of a server
control. I have read somwhere that Attributes property can be used for
this.

Ex:
hlCountry.Attributes("onmouseover") = "javascript:alert('test');"
this line works

but
hlCountry.Attributes("onmouseover") = "javascript:backcolor('hlCountry');"
gives an error "Object required"

Any idea ???

Pradeep
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top