A
active
<%@ Master Language="VB" CodeFile="Default.master.vb"
Inherits="Default_master" %>
<!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" xml:lang="en">
<head id="Head1" runat="server">
<title></title>
function resizeImg(o)
{
var p=o.parentElement;
if ((o.clientWidth/o.clientHeight)>(p.clientWidth/p.clientHeight))
{o.style.width='100%';o.style.height=''}
else
{o.style.width='';o.style.height='100%'}
}
--%>
</script>
</head>
<body style...
....
<asp:TableCell runat="server" ID="TableCellR4C1" Height="300"
BorderStyle="Groove">
<asp:Image ID="Image1" runat="server" AlternateText="Alternate Image"
ImageAlign="Middle"
ImageUrl="~/Images/mydefault.jpg" OnLoad="resizeImg(Image1)" Width="100%"
Height="100%" />
</asp:TableCell>
I get th error message:
'resizeImg' is not a member of 'ASP._default_master'
Inherits="Default_master" %>
<!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" xml:lang="en">
<head id="Head1" runat="server">
<title></title>
function resizeImg(o)
{
var p=o.parentElement;
if ((o.clientWidth/o.clientHeight)>(p.clientWidth/p.clientHeight))
{o.style.width='100%';o.style.height=''}
else
{o.style.width='';o.style.height='100%'}
}
--%>
</script>
</head>
<body style...
....
<asp:TableCell runat="server" ID="TableCellR4C1" Height="300"
BorderStyle="Groove">
<asp:Image ID="Image1" runat="server" AlternateText="Alternate Image"
ImageAlign="Middle"
ImageUrl="~/Images/mydefault.jpg" OnLoad="resizeImg(Image1)" Width="100%"
Height="100%" />
</asp:TableCell>
I get th error message:
'resizeImg' is not a member of 'ASP._default_master'