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.

XML Content Block<br />

Custom ASP Functions<br />

“Managing Content” > “Forming URLs For <strong>Ektron</strong> <strong>CMS400.NET</strong><br />

Documents.”)<br />

The dynamic ecmContentBlock function is almost the same as the<br />

static one (see ”Static Content Block” on page 368). The only<br />

difference is the parameter, which makes the function dynamic.<br />

The parameter uses a query string call (Request.QueryString) to<br />

read the URL from the browser’s address bar. It treats everything<br />

after the question mark as a list of key/value pairs separated by<br />

ampersands. So, Request.QueryString passes the key as a<br />

parameter and returns its associated value. For example, in URL<br />

, the following QueryString calls<br />

return these values.<br />

QueryString Call Return value<br />

Request.QueryString(“id”) 1<br />

Request.QueryString(“LangType”) 1036<br />

Here is an example of displaying an XML content block. Note that<br />

you specify a content block and an XSLT, which determines how<br />

the content block is displayed.<br />

<br />

<br />

<br />

<br />

<br />

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

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

Saved successfully!

Ooh no, something went wrong!