onmouseover problem
-
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
-
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
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
-
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
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
-
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
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