BorderWidth of the control asp:ImageButton does not work in firefox

  • Thread starter Christophe Sauvage
  • Start date
C

Christophe Sauvage

Hello,
Apparently the property BorderWidth of the control asp:ImageButton does not
work in firefox
there is a solution ?
Thank you.

Server code :
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1"
%>
<%@ import Namespace="System" %>

<script language="C#" runat="server">

void Page_Load(Object sender, EventArgs E){
if (!IsPostBack) {
VisuAImageButton.BorderWidth = 0;
}
}

void ChoixAClick (Object sender, ImageClickEventArgs E){
VisuAImageButton.BorderWidth = 4;
}

</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form class="body" runat="server" style="margin:0;">
<asp:ImageButton BorderColor="#FF0080" OnClick="ChoixAClick"
ID="VisuAImageButton" ImageUrl="/images/btn-visualisez.gif" runat="server"
/>
</form>
</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top