Hi Saurabh,
In the Web page, the mouseover event is a client event, so you won't find it
in C# server-side events. However, you can add the JavaScript code in
ASP.NET.
See the code sample below that demonstrates the technique.
Let us know if this helps?
Ken
Microsoft MVP [ASP.NET]
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<script runat="server">
protected void Page_Load
(object sender, EventArgs e)
{
ImageButton1.At tributes.Add("o nmouseover",
"this.src='http ://www.gc.ca/images/francaisbt.gif' ");
ImageButton1.At tributes.Add("o nmouseout",
"this.src='http ://www.gc.ca/images/englishbt.gif'" );
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>MouseOve r MouseOut Image</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:imagebutto n id="ImageButton 1" runat="server"
imageurl="http://www.gc.ca/images/englishbt.gif" /></div>
</form>
</body>
</html>
"Saurabh" <Sa*****@discus sions.microsoft .comwrote in message
news:67******** *************** ***********@mic rosoft.com...
I'm a user of Visual Studio Web Developer 2005 Express Edition & I use C#
as
the language in it. So, the problem i'm facing is that I want to add a
MouseHover event to an image but i could'nt find it in the Events' list in
Properties window as in Microsoft Visual C# 2005 Express Edition.Can you
tell
me where it lies or isthere any other way to do it in Web Developer. I'll
be
thankful if you solve my problem.
Saurabh