Microsoft Content Management Server - how to get html source generated by a posting

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > December 2005 > how to get html source generated by a posting





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how to get html source generated by a posting
ginnone@supereva.it

2005-12-27, 7:48 am

I was reading Microsoft Content Management Server 2002 .NET Class
Reference to see if there is a method or a property to get a string
containing the html source that will be generated by a certain Posting,
but I didn't find anything.
I need to save the HTML of cms postings whenever there's a new
approval; I know I can extend the workflow and I'm able to save the
Placeholders contents. However, physical aspx pages can change throught
time, and I need a way to store not only the contents but also the
cantainer... the whole page. Is there a way to do this, using the CMS
API? A way to save a unique file containing the page (the result of the
"mixing" process that involvs the logical template in the DB, the
physical aspx page on the FS, and the placeholders contents of a
certaing Posting) that will be sent to users' browsers?
Of course I could save the html string returned by a http request, but
I wondered if there's a more efficient way...

Stefan [MSFT]

2005-12-27, 7:48 am

Hi,

the easiest way to do this is to run a HttpWebRequest againt the URL of the
posting.
Then consume the response stream to get the html.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------


"ginnone@supereva.it" <ginnone@gmail.com> wrote in message
news:1135680652.378446.181590@g43g2000cwa.googlegroups.com...
>I was reading Microsoft Content Management Server 2002 .NET Class
> Reference to see if there is a method or a property to get a string
> containing the html source that will be generated by a certain Posting,
> but I didn't find anything.
> I need to save the HTML of cms postings whenever there's a new
> approval; I know I can extend the workflow and I'm able to save the
> Placeholders contents. However, physical aspx pages can change throught
> time, and I need a way to store not only the contents but also the
> cantainer... the whole page. Is there a way to do this, using the CMS
> API? A way to save a unique file containing the page (the result of the
> "mixing" process that involvs the logical template in the DB, the
> physical aspx page on the FS, and the placeholders contents of a
> certaing Posting) that will be sent to users' browsers?
> Of course I could save the html string returned by a http request, but
> I wondered if there's a more efficient way...
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com