Eso lo haces con javascript.
En el caso de imágenes lo podrías hacer mas o menos así:
Cita: <html>
<head>
<script language="javascript">
function changeIMG(obj)
{
var i = obj.src.indexOf('foto1.gif');
if (i!=-1)
obj.src = 'foto2.gif';
else
obj.src = 'foto1.gif';
}
</script>
</head>
<body>
...
..
<<input type=image src="foto1.gif" onmouseover="changeIMG(this)" onmouseout="changeIMG(this)">
si es un boton del lado del server (web control)
sería
modo html:
Cita: <asp:ImageButton ID="imageBtn" Runat="server" ImageUrl="foto1.gif"></asp:ImageButton>
Y en tu codebehind de tu page_load:
Cita: If Not IsPostBack Then
imageBtn.Attributes.Add("onmouseover", "changeIMG(this)")
imageBtn.Attributes.Add("onmouseout", "changeIMG(this)")
End If
COn ello le cargas los atributos para ligarlos al Javascript.
Espero que sea lo que buscas.
Salu2