Page content override

  • Thread starter Thread starter Pavils Jurjans
  • Start date Start date
P

Pavils Jurjans

Hello,

I have to create a proxy aspx page that loads content from database or plain
html file, and that content is exactly what I must see in the browser.
Currently I have this aspx code:

<%@ Page Language="C#" inherits="S3.Web.App.CodeBehind.Form"%>
<%=Body()%>

Where the Body method is a method of code-behind class that loads the
content, and Response.writes it out. However, I believe, there must be some
Page class method that I could override so that I don't have to do this
roundtrip <%=Body()%>, and that really all the code is in the code-behind
class. I also need to use Response.write myself, and I can't use single
literal control, because the html content being loaded could be large, and
it is important that it is streamed to client right away, not waiting until
all the page controls (acually single literal control) are rendered. So, I
expect to find some Page class method that I could override, thus taking the
page rendering in my own hands.

Thanks,

Pavils
 
Pavils Jurjans said:
Hello,

I have to create a proxy aspx page that loads content from database or plain
html file, and that content is exactly what I must see in the browser.
Currently I have this aspx code:

<%@ Page Language="C#" inherits="S3.Web.App.CodeBehind.Form"%>
<%=Body()%>

Where the Body method is a method of code-behind class that loads the
content, and Response.writes it out. However, I believe, there must be some
Page class method that I could override so that I don't have to do this
roundtrip <%=Body()%>, and that really all the code is in the code-behind
class. I also need to use Response.write myself, and I can't use single
literal control, because the html content being loaded could be large, and
it is important that it is streamed to client right away, not waiting until
all the page controls (acually single literal control) are rendered. So, I
expect to find some Page class method that I could override, thus taking the
page rendering in my own hands.

Thanks,

Pavils

Override the "Render" method. But I don't know if you can send "chunks" of
data instead of the whole page...

Hans Kesting
 
Hello, Hans,

I tried to override the Render method, but it failed to work, maybe
you/someone can point out on some resource, where the overriden Render
method is demonstrated?

-- Pavils
 
Back
Top