16.01.2013 Views

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

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.

Chapter 35: Building Applications Using Windows SharePoint Services Data 975<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

How Cool v2 Support Problem/Solutions Knowledge Base<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Regardless of what you add for code here, be sure that you add the new link<br />

shown for ProbSolutionKB.aspx. (In the preceding example, this new link, How Cool v2 Support Problem/Solutions Knowledge Base,<br />

appears in boldface type.) Save your work either by pressing Ctrl+S or by selecting File<br />

from the top menu <strong>and</strong> then clicking Save Default.aspx. To build the project to ensure<br />

there are no errors, from the top menu, select Build <strong>and</strong> then click Build Project.<br />

Assuming you have no build errors, next you need to test the new home page<br />

in your browser (not within Visual Studio). Do this by either opening Internet<br />

Explorer <strong>and</strong> navigating to the URL of the site (in our example, http://s2003e:383)<br />

or, in Visual Studio in the Solution Explorer pane, right-clicking the name<br />

(Default.aspx) <strong>and</strong> selecting Browse With from the menu. In the Browse With dialog<br />

box, select <strong>Microsoft</strong> Internet Explorer from the Browser List <strong>and</strong> then click Browse.<br />

Note You could also simply build <strong>and</strong> start the project by pressing the F5<br />

key or, from the top menu, selecting Debug <strong>and</strong> then clicking Start. Because<br />

Default.aspx is already set as the start page, it will automatically open (if<br />

there are no build errors). If you do use this method, verify that the page<br />

works <strong>and</strong> then stop debugging so that we can add the new page in the next<br />

section.<br />

If you click the link for the Knowledge Base page, you should get a message<br />

that says “The page cannot be found,” but the link should be correct (http://s2003e:<br />

383/ProbSolutionKB.aspx). Once you have tested the page, close the browser.

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

Saved successfully!

Ooh no, something went wrong!