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.

Retrieving the XML Structure of a Search<br />

NOTE<br />

Retrieving the XML structure of XML content allows for greater<br />

control over developing XSLs. The following is an example of how<br />

to retrieve the XML structure:<br />

1. Open a new Web form.<br />

2. Drag and drop a Search Server Control onto it.<br />

3. Set the FolderPath property.<br />

4. Drag and drop a Textbox on the Web form.<br />

5. Set the TextMode property to MultiLine.<br />

It is also recommended that you set the width of the text box to at least 400px.<br />

6. On the code behind page, add the following line.<br />

Textbox1.Text = Search1.XmlDoc.InnerXml<br />

7. Build the project.<br />

8. View the Web form in a browser.<br />

9. Search for something.<br />

10. When the search returns any items, the XML structure of those<br />

items appear in the textbox.<br />

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

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

Saved successfully!

Ooh no, something went wrong!