Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > ASP > Trouble with OnMouseOver event in ASP.NET


Автор: Гость_Alexander 24.12.2003, 17:36
Hey Guys!

Who can tell me how to solve problem with onmouseover event in ASP.
I need to creat an ImageButton and when your mouse over it chanes its property of ImageURL to another picture. But in ASP there is no onmouseover events:-(
Do someone know how to solve it?

Best regards!
Alexander

p.s. please email me if you can.
perevalov@samsung.ru

Автор: Гость_DeathStorm 26.12.2003, 16:07
This is a stupid question или классная шутка ;)

Автор: Unregistered 29.12.2003, 10:20
:-) Maybe i'm just too stupid, it is very possible, but i use ASP.NET, and writing in web controls object onmouseover net framework show an error, and page, it loads but this event doesn't work.
here is the simple listing:

<%@ Page Language=VB %>

<script runat="server">
sub Show(obj as object, e as ImageClickeventargs)
lb.text="Hello world"
end sub
</script>

<html>
<body>

<form runat=server>
<asp:ImageButton OnMouseOver="Show" ImageUrl="point.gif" Runat="server"/>
<asp:Label Runat=server ID="lb"/>
</form>

</body>
</html>

tell me where is a mistake, i'll be very thankfull to you!

Best regards!
AP

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)