B
Brent
Like many sites, mine has a standard "look" -- a template, if you will
-- that visitors see on each page. I've tried to keep the code and HTML
separate to the extent possible, and for most standard page
presentations, it works well.
However, I have a couple of screen scrape / import routines that can
take minutes, even hours, to complete. I'd like to have some way of
outputting my template first to the browser, and then within the
template, providing feedback to the user as the import progresses. I've
yet to figure out how to do this. If I do, e.g. ... (pseudo code)
<script runat="server">
Response.Write(userfeedback);
Response.Flush;
</script>
....from within the code, I can provide good feedback, but these lines
will end up in the browser before any the rest of the template arrives.
If, instead I do, e.g. ... (pseudo code)
<script runat="server">
StringBuilder sb = new Stringbuilder();
sb.Append(userfeedback);
myControl.Text = sb.ToString();
</script>
<html>
<body>
<asp:Literal id="myControl" runat="server" />
</body>
</html>
....I may have to wait a very long time before seeing anything on the screen.
Is there any way to output the template first, and then target my
Response.Write/Response.Flush statements to, say, a <div> or some kind
of <asp:n> control?
Thanks for any input!
--Brent
-- that visitors see on each page. I've tried to keep the code and HTML
separate to the extent possible, and for most standard page
presentations, it works well.
However, I have a couple of screen scrape / import routines that can
take minutes, even hours, to complete. I'd like to have some way of
outputting my template first to the browser, and then within the
template, providing feedback to the user as the import progresses. I've
yet to figure out how to do this. If I do, e.g. ... (pseudo code)
<script runat="server">
Response.Write(userfeedback);
Response.Flush;
</script>
....from within the code, I can provide good feedback, but these lines
will end up in the browser before any the rest of the template arrives.
If, instead I do, e.g. ... (pseudo code)
<script runat="server">
StringBuilder sb = new Stringbuilder();
sb.Append(userfeedback);
myControl.Text = sb.ToString();
</script>
<html>
<body>
<asp:Literal id="myControl" runat="server" />
</body>
</html>
....I may have to wait a very long time before seeing anything on the screen.
Is there any way to output the template first, and then target my
Response.Write/Response.Flush statements to, say, a <div> or some kind
of <asp:n> control?
Thanks for any input!
--Brent