15.08.2013 Views

Ektron CMS400.NET Developer Reference Manual

Ektron CMS400.NET Developer Reference Manual

Ektron CMS400.NET Developer Reference Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Web Services<br />

Next, the page uses the GetContentBlock method to display the<br />

content block in “raw” HTML or XML format. Here is the code that<br />

displays that section of the page.<br />

strHTML = strHTML & "Raw HTML (or XML) from GetContentBlock Web<br />

Service: "<br />

strHTML = strHTML & "&nbsp;"<br />

strHTML = strHTML & "" & strRawHtml & ""<br />

strHTML = strHTML & "&nbsp;"<br />

Finally, the page uses the ContentBlock Web method to display the<br />

content block in “processed” format. Here is the code that displays<br />

that section of the page.<br />

strHTML = strHTML & "Processed HTML (or XML) from ContentBlock<br />

Web Service: "<br />

strHTML = strHTML & "" & strProcessedHtml & ""<br />

strHTML = strHTML & ""<br />

Earlier in the news.aspx.vb file, the strProcessedHtml variable was<br />

defined as strProcessedHtml = wsCms400WebService.ContentBlock(iId).<br />

So, the strProcessedHtml variable uses the<br />

wsCms400WebService.ContentBlock method to retrieve content in<br />

processed format.<br />

Here is the resulting section of that page. As you can see, the<br />

content appears as within a browser.<br />

<strong>Ektron</strong> <strong>CMS400.NET</strong> <strong>Developer</strong> <strong>Reference</strong> <strong>Manual</strong>, Version 5.1, Revision 5 561

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!