J
Jeff
hi
asp.net 3.5
<asp:ImageButton ID="ImageButton1" ImageUrl="~/Images/normal.gif"
runat="server" />
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ImageButton1.Attributes.Add("onMouseOver",
"ImageUrl='~/Images/hover.gif'");
ImageButton1.Attributes.Add("onMouseOut",
"ImageUrl='~/Images/normal.gif'");
}
}
when the page loads it displays the ImageButton with the correct image, but
when I hover the mouse over the image then I get a broken image icon. when I
move the mouse away from the ImageButton I still get the broken image
icon...
any ideas what I do wrong here?
asp.net 3.5
<asp:ImageButton ID="ImageButton1" ImageUrl="~/Images/normal.gif"
runat="server" />
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ImageButton1.Attributes.Add("onMouseOver",
"ImageUrl='~/Images/hover.gif'");
ImageButton1.Attributes.Add("onMouseOut",
"ImageUrl='~/Images/normal.gif'");
}
}
when the page loads it displays the ImageButton with the correct image, but
when I hover the mouse over the image then I get a broken image icon. when I
move the mouse away from the ImageButton I still get the broken image
icon...
any ideas what I do wrong here?