SeverControl.Attributes

  • Thread starter Thread starter Pradeep
  • Start date Start date
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
 
Back
Top