S
Steven
Hello,
The code below will not generate the html for ImageSec. Can anyone tell
me why?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DynCtls.aspx.cs"
Inherits="DynCtls" %>
<!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>
<title>Viewer</title>
</head>
<body>
<form id="Form1" method="post" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div align="center">
<asp:UpdatePanel ID="UpdatePanel1" runat="server"
UpdateMode="Conditional">
<ContentTemplate>
<img id="ImagePrim" runat="server" src="<%# GetData()
%>" />
<img id="ImageSec" runat="server" src="<%# GetData2()
%>" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
<script language="javascript" type="text/javascript">
var prm = Sys.WebForms.PageRequestManager.getInstance();
setTimeout('Update()', 10000);
function Update()
{
prm._doPostBack('UpdatePanel1', '');
setTimeout('Update()', 10000);
}
</script>
Thanks,
Steven
The code below will not generate the html for ImageSec. Can anyone tell
me why?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DynCtls.aspx.cs"
Inherits="DynCtls" %>
<!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>
<title>Viewer</title>
</head>
<body>
<form id="Form1" method="post" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div align="center">
<asp:UpdatePanel ID="UpdatePanel1" runat="server"
UpdateMode="Conditional">
<ContentTemplate>
<img id="ImagePrim" runat="server" src="<%# GetData()
%>" />
<img id="ImageSec" runat="server" src="<%# GetData2()
%>" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
<script language="javascript" type="text/javascript">
var prm = Sys.WebForms.PageRequestManager.getInstance();
setTimeout('Update()', 10000);
function Update()
{
prm._doPostBack('UpdatePanel1', '');
setTimeout('Update()', 10000);
}
</script>
Thanks,
Steven