R
Rex the Strange
Hi everyone,
I'm trying to create an instance of a user page (.aspx page) from
within another .aspx page (the theory being that I can redirect the
generated content of the instantiated page into an email without
having to actually go to the page). But I'm finding that I can't
render the page instance or, when I do, the output is blank - clearly
the page isn't being processed.
I've tried the following:
public sub doit ( ... ) handles btn_doit.click
dim email_page as new email_page_type (this works ok)
email_page.custom_property = "property value" [this works ok, too
- I can see the properties and can set them]
dim text_writer as new system.io.stringwriter
dim html_writer as new htmltextwriter
email_page.rendercontrol (html_writer) [so far so good]
dim output as string = text_writer.tostring [AACK! - output is
empty!]
end sub
I've also tried:
public sub doit [blah blah blah]
dim email_page as new email_page_type
server.execute (email_page, text_writer, true/false [seems to make
no difference])
[still no luck]
end sub
Clearly there is some command that needs to be executed, presumably to
have the buildmanager actually build the page, but I can't see what it
is.
Anyone? Anyone? Please?
Tia,
Rex.
I'm trying to create an instance of a user page (.aspx page) from
within another .aspx page (the theory being that I can redirect the
generated content of the instantiated page into an email without
having to actually go to the page). But I'm finding that I can't
render the page instance or, when I do, the output is blank - clearly
the page isn't being processed.
I've tried the following:
public sub doit ( ... ) handles btn_doit.click
dim email_page as new email_page_type (this works ok)
email_page.custom_property = "property value" [this works ok, too
- I can see the properties and can set them]
dim text_writer as new system.io.stringwriter
dim html_writer as new htmltextwriter
email_page.rendercontrol (html_writer) [so far so good]
dim output as string = text_writer.tostring [AACK! - output is
empty!]
end sub
I've also tried:
public sub doit [blah blah blah]
dim email_page as new email_page_type
server.execute (email_page, text_writer, true/false [seems to make
no difference])
[still no luck]
end sub
Clearly there is some command that needs to be executed, presumably to
have the buildmanager actually build the page, but I can't see what it
is.
Anyone? Anyone? Please?
Tia,
Rex.