SeverControl.Attributes

Discussion in 'ASP .Net' started by Pradeep, Aug 23, 2003.

  1. Pradeep

    Pradeep Guest

    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
     
    Pradeep, Aug 23, 2003
    #1
    1. Advertising

  2. Pradeep

    Pradeep Guest

    Hi,

    Yes it is a Client error on the IE.

    Pradeep

    "Ken Schaefer" <> wrote in message
    news:ejCj#...
    > Object Required <- Is this a client-side error being generated by your
    > browser?
    >
    > Cheers
    > Ken
    >
    >
    > --
    > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    > "Pradeep" <> wrote in message
    > news:unj%...
    > : 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"
    >
    >
     
    Pradeep, Aug 25, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Max
    Replies:
    1
    Views:
    514
    Joe Kesselman
    Sep 22, 2006
  2. P4trykx
    Replies:
    2
    Views:
    1,889
    bruce barker
    Jan 31, 2007
  3. james_027

    class attributes & data attributes

    james_027, Jun 20, 2007, in forum: Python
    Replies:
    2
    Views:
    411
    Bruno Desthuilliers
    Jun 20, 2007
  4. Kyle Schmitt
    Replies:
    3
    Views:
    224
    Kyle Schmitt
    Jul 24, 2007
  5. Jayden
    Replies:
    16
    Views:
    558
    Steven D'Aprano
    Sep 29, 2012
Loading...

Share This Page