Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. onmouseover problem

onmouseover problem

Scheduled Pinned Locked Moved ASP.NET
questionhelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jon G
    wrote on last edited by
    #1

    Hey, I'm trying to set the onmouseover property for different ASP elements, such as buttons, labels, dropdownlists, etc.... Although, the elements do not have the properties, it still works, but the only problem is, it generates errors. How can I made my ASP Buttons accept a onmouseover event without generating errors? Thanks, Jon G

    R 1 Reply Last reply
    0
    • J Jon G

      Hey, I'm trying to set the onmouseover property for different ASP elements, such as buttons, labels, dropdownlists, etc.... Although, the elements do not have the properties, it still works, but the only problem is, it generates errors. How can I made my ASP Buttons accept a onmouseover event without generating errors? Thanks, Jon G

      R Offline
      R Offline
      Rocky Moore
      wrote on last edited by
      #2

      What errors is it generating? If you are talking about in the IDE, I do not worry about them. You can also add the mouseover in the code behind file but simply doing: myButton.Attribute.Add("onmouseover","alert('yo');"); Rocky <>< www.HintsAndTips.com www.GotTheAnswerToSpam.com

      J 2 Replies Last reply
      0
      • R Rocky Moore

        What errors is it generating? If you are talking about in the IDE, I do not worry about them. You can also add the mouseover in the code behind file but simply doing: myButton.Attribute.Add("onmouseover","alert('yo');"); Rocky <>< www.HintsAndTips.com www.GotTheAnswerToSpam.com

        J Offline
        J Offline
        Jon G
        wrote on last edited by
        #3

        Yeah, the errors are generated in the task list of my IDE. The application works fine, however it also displays "errors on page" at the bottom of my browser. I was looking for the "correct" way to do it so it wouldn't flag as an error in the browser. I'll try adding the .Attribute.Add in my VBScript, and see what happens. Thanks for your feedback, Jon G www.Gizmocoder.com

        1 Reply Last reply
        0
        • R Rocky Moore

          What errors is it generating? If you are talking about in the IDE, I do not worry about them. You can also add the mouseover in the code behind file but simply doing: myButton.Attribute.Add("onmouseover","alert('yo');"); Rocky <>< www.HintsAndTips.com www.GotTheAnswerToSpam.com

          J Offline
          J Offline
          Jon G
          wrote on last edited by
          #4

          After 3 hours of trying, I still haven't managed to get it to work The method you suggested, with the Attributes.Add function does not work at all. Can you elaborate on how to use this? I inserted it into my Page_Load functino in my PAGE.ASPX.VB file. Jon G www.Gizmocoder.com

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups