Search:
Namespaces
Discussions
.NET v1.1
Feedback
ImageButton and Javascript
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngclient' list
.
Greg Bernhardt
-- Moved from [aspngfreeforall] to [aspngclient] by Marcie Jones <
Click here to reveal e-mail address
> --
What is wrong with this? It doesn't work.
<script language="javascript">
function goclaims()
{
window.location.assign("../webapplication2/webform1.aspx");
}
</script>
<asp:ImageButton id="Image5" onmouseover="this.className='applyBorder'"
onmouseout="this.className='removeBorder'" runat="server" Width="24px"
Height="18px" CssClass="removeBorder" ImageUrl="file:///C:\Documents and
Settings\gregb\Desktop\icons\Claims.ico"
onlick="goclaims();"></asp:ImageButton>
Reply to this message...
Matt Serdar
The onclick event for the server controls is meant for the server code
behind. You can make the asp:ImageButton a regular <img> instead.
hth
matt
-----Original Message-----
From: Greg Bernhardt [mailto:
Click here to reveal e-mail address
]
Sent: Monday, July 01, 2002 7:09 AM
To: aspngclient
Subject: [aspngclient]
ImageButton
and Javascript
-- Moved from [aspngfreeforall] to [aspngclient] by Marcie Jones
<
Click here to reveal e-mail address
> --
What is wrong with this? It doesn't work.
<script language="javascript">
function goclaims()
{
window.location.assign("../webapplication2/webform1.aspx");
}
</script>
<asp:ImageButton id="Image5" onmouseover="this.className='applyBorder'"
onmouseout="this.className='removeBorder'" runat="server" Width="24px"
Height="18px" CssClass="removeBorder" ImageUrl="file:///C:\Documents and
Settings\gregb\Desktop\icons\Claims.ico"
onlick="goclaims();"></asp:ImageButton>
| [aspngclient] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngclient.asp
= JOIN/QUIT
Reply to this message...
System.Web.UI.WebControls.ImageButton
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com