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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Introduction to <strong>Ektron</strong> <strong>CMS400.NET</strong> Server Controls<br />

This example displays the quick link for every content block in the<br />

collection, formatted as a bulleted list. You can use similar code to<br />

display a List Summary or search results. The following explains<br />

the new (red) code above.<br />

• label1.Text = "" displays the opening tag for the bulleted<br />

list<br />

• For Each ekitem In myColl.EkItems creates a loop for all content<br />

blocks in the collection<br />

• label1.Text &= "" &<br />

ekitem.Title & "" for each content block in the<br />

collection, displays its quicklink and title<br />

• Next loops through all content blocks in the collection<br />

• label1.Text &= "" closes the bulleted list<br />

Server Control Properties in Code Behind<br />

Every server control has properties associated with it that you can<br />

only access programmatically. This subsection explains, what they<br />

are, how to access them, and how to use them.<br />

• ”Displaying Properties for a Control” on page 38<br />

• ”Mutual Server Control Properties in Code Behind” on page 39<br />

• ”Accessing Additional Properties” on page 41<br />

• ”Accessing Items in an Array” on page 47<br />

• ”Referencing the Page Property” on page 47<br />

Displaying Properties for a Control<br />

You can use Visual Studio .NET’s intellisense feature to display a<br />

control’s properties. The intellisense box appears as soon as you<br />

insert the period (.) after the object, as illustrated below.<br />

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

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

Saved successfully!

Ooh no, something went wrong!