Server Side control invoking a Client Side event

I need to figure out how to get a server side control to process the "OnMouseOver" event.

Since server side controls do not have the onmouseover event associated with them, how would you make for example, a DropDownList have a "OnMouseOver" event associate with it?
The DropDownList must be server side. I guess the idea here is to set client-side events on the server-side control.

Any help will be appreciated.
0
gizmocoder
7/30/2004 2:03:55 PM
📁 asp.net.client-side
📃 24353 articles.
⭐ 2 followers.

💬 2 Replies
👁️‍🗨️ 1340 Views

You may try something like this:

In server side code

DDL1.Attributes.Add("onmouseover", "javascript:alert('Hi')")

This posting is provided "AS IS" with no warranties, and confers no rights.
0
jimmym
7/30/2004 5:03:43 PM
It works. Thanks.
0
gizmocoder
7/30/2004 7:10:55 PM