WebSplitter and body onload event

1 reply. Last post: October 27, 2010 5:06 PM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hi all,

I created the following aspx page:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebSplitterTestAndOnload.aspx.cs" Inherits="WebUITest.WebSplitterTestAndOnload" %>

<%@ Register assembly="ISNet.WebUI.WebDesktop" namespace="ISNet.WebUI.WebDesktop" tagprefix="ISWebDesktop" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html >
<head runat="server">
<title></title>
<script type="text/javascript" language="javascript">
function body_onload(event) {
alert("called on load!");
}
</script>
</head>
<body onload="body_onload(event);">
<form id="form1" runat="server">
<div>
<table cellpadding="0" cellspacing="0" style="height: 100%; width: 100%; table-layout:fixed;">
<tr>
<td style="width: 30%">

</td>
<td>
<ISWebDesktop:WebSplitter ID="WebSplitter1" runat="server" >
<SplitterStyle>
<Active BaseStyle="Normal" BackColor="Black"></Active>
<Over BaseStyle="Normal" BackColor="#404040"></Over>
<Normal BackColor="#e4ecf7" Overflow="Hidden"
OverflowX="Hidden" OverflowY="Hidden"></Normal>
</SplitterStyle>
</ISWebDesktop:WebSplitter>
</td>
<td></td>
</tr>
</table>
</div>
</form>
</body>
</html>

The method declared in the body onload event is not executed, but if I remove the definition of the WebSplitter, the body_onload method is executed.

The method declared in the body onload event must be always executed.

Regards,

Vince


All times are GMT -5. The time now is 2:18 AM.
Previous Next