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.

Add Content<br />

IMPORTANT!<br />

Custom ASP Functions<br />

The add content function allows you to programmatically add a<br />

new content block to <strong>Ektron</strong> <strong>CMS400.NET</strong> without the need of<br />

logging in.<br />

This function can be for several applications including, but not<br />

limited to:<br />

• Applied to a Web form, allowing you to collect data from users<br />

about the content block<br />

• Creating a loop function that moves information from a<br />

database to an <strong>Ektron</strong> <strong>CMS400.NET</strong> database<br />

Here is the format for the add content function:<br />

<br />

Every string that you pass to the function must be HTML encoded. Here is the<br />

VB.Net syntax for encoding a string.<br />

myTitle = “John’s Book”<br />

myTitle = Server.HtmlEncode(myTitle)<br />

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

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

Saved successfully!

Ooh no, something went wrong!