SPList ItemCount on a > 100.000 items list

Having
a list containing more than 100.000 items provided us with some challenges, apparently
it is not possible to retrieve the ItemCount based on certain criteria using the object
model.

The
problem is that we actually had to retrieve those items.

So
a colleague came up with a rather dirty but very useful  fix
for that.

It’s
a small piece of code that makes a View based on a desired query, and sort this on
the Author (all the items are created by the same account). By setting the Collapse
property on true SharePoint renders a HTML Header containing the total amount of items.
By actually reading that piece of HTML he found a quick&dirty way to retrieve
those totals.

<p>
  </span></span></span></span>
</p>

<p class="MsoNormal" style="margin: 0in 0in 10pt;">
  <span style="line-height: 115%; mso-bidi-font-size: 12.0pt;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Calibri;">Below<br /> you can find the code, and we were wondering if any of you out there would know another<br /> way without using the Search or talking directly to the Content Database.</p> 

  <p>
    </span></span></span></span>
  </p>

  <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
    <span style="font-size: 8pt; background: white; color: teal; font-family: 'Comic Sans MS'; mso-highlight: white; mso-bidi-font-family: 'Comic Sans MS';">///<br /> <summary><br /> </span>
  </p>

  <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
    <span style="font-size: 8pt; background: white; color: teal; font-family: 'Comic Sans MS'; mso-highlight: white; mso-bidi-font-family: 'Comic Sans MS';">///<br /> This function will return the count of the items found by the query, using the RenderAsHTML()<br /> method of the SPView object<br /> </span>
  </p>

  <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
    <span style="font-size: 8pt; background: white; color: teal; font-family: 'Comic Sans MS'; mso-highlight: white; mso-bidi-font-family: 'Comic Sans MS';">///<br /> IMPORTANT: It asumes that all Items are created using the same account (Author), if<br /> this is not the case,</p> 

    <p>
      </span>
    </p>

    <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
      <span style="font-size: 8pt; background: white; color: teal; font-family: 'Comic Sans MS'; mso-highlight: white; mso-bidi-font-family: 'Comic Sans MS';">///<br /> please find or provide an other property that is equal for all ListItems<br /> </span>
    </p>

    <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
      <span style="font-size: 8pt; background: white; color: teal; font-family: 'Comic Sans MS'; mso-highlight: white; mso-bidi-font-family: 'Comic Sans MS';">///<br /> NOTE: This function has no error-handling inside.<br /> </span>
    </p>

    <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
      <span style="font-size: 8pt; background: white; color: teal; font-family: 'Comic Sans MS'; mso-highlight: white; mso-bidi-font-family: 'Comic Sans MS';">///<br /> </summary><br /> </span>
    </p>

    <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
      <span style="font-size: 8pt; background: white; color: teal; font-family: 'Comic Sans MS'; mso-highlight: white; mso-bidi-font-family: 'Comic Sans MS';">///<br /> <param name="list">SPList object that holds the items to count</param><br /> </span>
    </p>

    <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
      <span style="font-size: 8pt; background: white; color: teal; font-family: 'Comic Sans MS'; mso-highlight: white; mso-bidi-font-family: 'Comic Sans MS';">///<br /> <param name="query">CAML query-string</param><br /> </span>
    </p>

    <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
      <span style="font-size: 8pt; background: white; color: teal; font-family: 'Comic Sans MS'; mso-highlight: white; mso-bidi-font-family: 'Comic Sans MS';">///<br /> <returns>-1 on error, otherwise number of items found</returns><br /> </span>
    </p>

    <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
      <strong><span style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New'; mso-highlight: white;">private</span></strong><span style="font-size: 10pt; background: white; color: #8000ff; font-family: 'Courier New'; mso-highlight: white;">static</span><span style="font-size: 10pt; background: white; color: #8000ff; font-family: 'Courier New'; mso-highlight: white;">int</span><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> GetItemCount</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">SPList<br /> list</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">,</span></strong><span style="font-size: 10pt; background: white; color: #8000ff; font-family: 'Courier New'; mso-highlight: white;">string</span><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> query</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">)</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

      <p>
        </span>
      </p>

      <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
        <strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">{</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

        <p>
          </span>
        </p>

        <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
          <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 1;">    </span></span><strong><span style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New'; mso-highlight: white;">return</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> GetItemCount</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">list</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">,</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> query</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">,</span></strong><span style="font-size: 10pt; background: white; color: gray; font-family: 'Courier New'; mso-highlight: white;">"Author"</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">);</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

          <p>
            </span>
          </p>

          <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
            <strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">}</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

            <p>
              </span>
            </p>

            <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
              <strong><span style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New'; mso-highlight: white;">private</span></strong><span style="font-size: 10pt; background: white; color: #8000ff; font-family: 'Courier New'; mso-highlight: white;">static</span><span style="font-size: 10pt; background: white; color: #8000ff; font-family: 'Courier New'; mso-highlight: white;">int</span><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> GetItemCount</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">SPList<br /> list</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">,</span></strong><span style="font-size: 10pt; background: white; color: #8000ff; font-family: 'Courier New'; mso-highlight: white;">string</span><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> query</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">,</span></strong><span style="font-size: 10pt; background: white; color: #8000ff; font-family: 'Courier New'; mso-highlight: white;">string</span><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> GroupByProperty</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">)</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

              <p>
                </span>
              </p>

              <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 1;">    </span></span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">{</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                <p>
                  </span>
                </p>

                <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                  <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span></span><span style="font-size: 8pt; background: white; color: green; font-family: 'Comic Sans MS'; mso-highlight: white; mso-bidi-font-family: 'Comic Sans MS';">//Since<br /> files are added by the system, author will be the same for all<br /> </span>
                </p>

                <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                  <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span></span><span style="font-size: 8pt; background: white; color: green; font-family: 'Comic Sans MS'; mso-highlight: white; mso-bidi-font-family: 'Comic Sans MS';">//adding<br /> GroupBy and setting the Collapse to true, the view will be rendered collapsed and<br /> show only the itemcount<br /> </span>
                </p>

                <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                  <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span>query </span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">=</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> String</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">Format</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: gray; font-family: 'Courier New'; mso-highlight: white;">"<GroupBy<br /> Collapse=\"TRUE\" GroupLimit=\"1\"><FieldRef Name=\"{0}\" /></GroupBy>{1}"</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">,</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">GroupByProperty</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">,</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> query</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">);</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                  <p>
                    </span>
                  </p>

                  <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                    <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                    <p>
                      </span>
                    </p>

                    <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                      <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 1;">    </span><span style="mso-tab-count: 1;">    </span></span><span style="font-size: 8pt; background: white; color: green; font-family: 'Comic Sans MS'; mso-highlight: white; mso-bidi-font-family: 'Comic Sans MS';">//create<br /> temp view<br /> </span>
                    </p>

                    <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                      <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span>list</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">ParentWeb</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">AllowUnsafeUpdates </span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">=</span></strong><strong><span style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New'; mso-highlight: white;">true</span></strong><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">;</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                      <p>
                        </span>
                      </p>

                      <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                        <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span></span><span style="font-size: 10pt; background: white; color: #8000ff; font-family: 'Courier New'; mso-highlight: white;">string</span><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> TempViewName </span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">=</span></strong><span style="font-size: 10pt; background: white; color: gray; font-family: 'Courier New'; mso-highlight: white;">"TempViewForItemCount"</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">;</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                        <p>
                          </span>
                        </p>

                        <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                          <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span>SPView<br /> newview </span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">=</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> list</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">Views</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">Add</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">TempViewName</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">,</span></strong><strong><span style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New'; mso-highlight: white;">new</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> StringCollection</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">()</span></strong><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">{</span></strong><span style="font-size: 10pt; background: white; color: gray; font-family: 'Courier New'; mso-highlight: white;">"Soep1"</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">,</span></strong><span style="font-size: 10pt; background: white; color: gray; font-family: 'Courier New'; mso-highlight: white;">"Author"</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">},</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> query</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">,</span></strong><span style="font-size: 10pt; background: white; color: #ff8000; font-family: 'Courier New'; mso-highlight: white;">10000000</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">,</span></strong><strong><span style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New'; mso-highlight: white;">false</span></strong><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">,</span></strong><strong><span style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New'; mso-highlight: white;">false</span></strong><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">);</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                          <p>
                            </span>
                          </p>

                          <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                            <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span>newview</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">Update</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">();</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                            <p>
                              </span>
                            </p>

                            <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                              <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span>list</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">Update</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">();</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                              <p>
                                </span>
                              </p>

                              <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span></span><span style="font-size: 8pt; background: white; color: green; font-family: 'Comic Sans MS'; mso-highlight: white; mso-bidi-font-family: 'Comic Sans MS';">//RenderAsHtml<br /> creates a small piece of HTML that contains the itemcount<br /> </span>
                              </p>

                              <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span></span><span style="font-size: 10pt; background: white; color: #8000ff; font-family: 'Courier New'; mso-highlight: white;">string</span><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> html </span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">=</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> list</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">Views</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">[</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">newview</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">ID</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">].</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">RenderAsHtml</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">();</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                <p>
                                  </span>
                                </p>

                                <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                  <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                  <p>
                                    </span>
                                  </p>

                                  <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                    <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span></span><span style="font-size: 8pt; background: white; color: green; font-family: 'Comic Sans MS'; mso-highlight: white; mso-bidi-font-family: 'Comic Sans MS';">//remove<br /> the temp view<br /> </span>
                                  </p>

                                  <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                    <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span>list</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">Views</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">Delete</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">newview</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">ID</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">);</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                    <p>
                                      </span>
                                    </p>

                                    <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                      <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                      <p>
                                        </span>
                                      </p>

                                      <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                        <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span>list</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">ParentWeb</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">AllowUnsafeUpdates </span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">=</span></strong><strong><span style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New'; mso-highlight: white;">false</span></strong><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">;</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                        <p>
                                          </span>
                                        </p>

                                        <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                          <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                          <p>
                                            </span>
                                          </p>

                                          <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                            <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span></span><span style="font-size: 8pt; background: white; color: green; font-family: 'Comic Sans MS'; mso-highlight: white; mso-bidi-font-family: 'Comic Sans MS';">//init<br /> a counter<br /> </span>
                                          </p>

                                          <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                            <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span></span><span style="font-size: 10pt; background: white; color: #8000ff; font-family: 'Courier New'; mso-highlight: white;">int</span><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> count </span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">=</span></strong><span style="font-size: 10pt; background: white; color: #ff8000; font-family: 'Courier New'; mso-highlight: white;"></span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">;</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                            <p>
                                              </span>
                                            </p>

                                            <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                              <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                              <p>
                                                </span>
                                              </p>

                                              <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span></span><span style="font-size: 8pt; background: white; color: green; font-family: 'Comic Sans MS'; mso-highlight: white; mso-bidi-font-family: 'Comic Sans MS';">//grab<br /> the count which is in brackets right after the '&#8206;'-character<br /> </span>
                                              </p>

                                              <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span></span><strong><span style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New'; mso-highlight: white;">if</span></strong><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">html</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">IndexOf</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: gray; font-family: 'Courier New'; mso-highlight: white;">"&#8206;("</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">)</span></strong><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;"><=</span></strong><span style="font-size: 10pt; background: white; color: #ff8000; font-family: 'Courier New'; mso-highlight: white;"></span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">)</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                <p>
                                                  </span>
                                                </p>

                                                <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                  <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 3;">            </span></span><strong><span style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New'; mso-highlight: white;">return</span></strong><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">&#8211;</span></strong><span style="font-size: 10pt; background: white; color: #ff8000; font-family: 'Courier New'; mso-highlight: white;">1</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">;</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                  <p>
                                                    </span>
                                                  </p>

                                                  <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                    <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span>html </span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">=</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> html</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">Substring</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">html</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">IndexOf</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: gray; font-family: 'Courier New'; mso-highlight: white;">"&#8206;("</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">)</span></strong><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">+</span></strong><span style="font-size: 10pt; background: white; color: #ff8000; font-family: 'Courier New'; mso-highlight: white;">8</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">,</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> html</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">IndexOf</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: gray; font-family: 'Courier New'; mso-highlight: white;">")"</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">,</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> html</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">IndexOf</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: gray; font-family: 'Courier New'; mso-highlight: white;">"&#8206;("</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">))</span></strong><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">&#8211;</span></strong><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">html</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">IndexOf</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: gray; font-family: 'Courier New'; mso-highlight: white;">"&#8206;("</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">)</span></strong><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">+</span></strong><span style="font-size: 10pt; background: white; color: #ff8000; font-family: 'Courier New'; mso-highlight: white;">8</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">));</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                    <p>
                                                      </span>
                                                    </p>

                                                    <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                      <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span></p> 

                                                      <p>
                                                        </span>
                                                      </p>

                                                      <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                        <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span></span><span style="font-size: 8pt; background: white; color: green; font-family: 'Comic Sans MS'; mso-highlight: white; mso-bidi-font-family: 'Comic Sans MS';">//try<br /> to parse the count<br /> </span>
                                                      </p>

                                                      <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                        <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span></span><strong><span style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New'; mso-highlight: white;">if</span></strong><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(!</span></strong><span style="font-size: 10pt; background: white; color: #8000ff; font-family: 'Courier New'; mso-highlight: white;">int</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">TryParse</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">html</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">,</span></strong><strong><span style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New'; mso-highlight: white;">out</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> count</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">))</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                        <p>
                                                          </span>
                                                        </p>

                                                        <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                          <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 3;">            </span></span><strong><span style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New'; mso-highlight: white;">return</span></strong><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">&#8211;</span></strong><span style="font-size: 10pt; background: white; color: #ff8000; font-family: 'Courier New'; mso-highlight: white;">1</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">;</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                          <p>
                                                            </span>
                                                          </p>

                                                          <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                            <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span></span><strong><span style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New'; mso-highlight: white;">return</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> count</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">;</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                            <p>
                                                              </span>
                                                            </p>

                                                            <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                              <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 1;">    </span></span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">}</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                              <p>
                                                                </span>
                                                              </p>

                                                              <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                                <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                                <p>
                                                                  </span>
                                                                </p>

                                                                <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                                  <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                                  <p>
                                                                    </span>
                                                                  </p>

                                                                  <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                                    <span style="font-size: 8pt; background: white; color: green; font-family: 'Comic Sans MS'; mso-highlight: white; mso-bidi-font-family: 'Comic Sans MS';">//testfunction<br /> </span>
                                                                  </p>

                                                                  <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                                    <strong><span style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New'; mso-highlight: white;">private</span></strong><span style="font-size: 10pt; background: white; color: #8000ff; font-family: 'Courier New'; mso-highlight: white;">void</span><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> Test</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">()</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                                    <p>
                                                                      </span>
                                                                    </p>

                                                                    <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                                      <strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">{</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                                      <p>
                                                                        </span>
                                                                      </p>

                                                                      <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                                        <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 1;">    </span></span><strong><span style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New'; mso-highlight: white;">using</span></strong><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">SPWeb<br /> myweb </span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">=</span></strong><strong><span style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New'; mso-highlight: white;">new</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> SPSite</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: gray; font-family: 'Courier New'; mso-highlight: white;">"http://somedomain.com"</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">).</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">RootWeb</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">)</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                                        <p>
                                                                          </span>
                                                                        </p>

                                                                        <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                                          <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 1;">    </span></span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">{</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                                          <p>
                                                                            </span>
                                                                          </p>

                                                                          <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                                            <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span>SPList<br /> SomeList </span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">=</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> myweb</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">Lists</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">[</span></strong><span style="font-size: 10pt; background: white; color: gray; font-family: 'Courier New'; mso-highlight: white;">"SomeList"</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">];</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                                            <p>
                                                                              </span>
                                                                            </p>

                                                                            <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                                              <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span>Console</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">WriteLine</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: gray; font-family: 'Courier New'; mso-highlight: white;">"End<br /> loading web at: "</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">+</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> DateTime</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">Now</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">.</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">ToLongTimeString</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">());</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                                              <p>
                                                                                </span>
                                                                              </p>

                                                                              <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                                                <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span></span><span style="font-size: 10pt; background: white; color: #8000ff; font-family: 'Courier New'; mso-highlight: white;">string</span><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> q </span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">=</span></strong><span style="font-size: 10pt; background: white; color: gray; font-family: 'Courier New'; mso-highlight: white;">"<Where><Eq><FieldRef<br /> Name=\"SomeField\" /><Value Type=\"Text\">SomeValue</Value></Eq></Where>"</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">;</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                                                <p>
                                                                                  </span>
                                                                                </p>

                                                                                <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                                                  <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 2;">        </span></span><span style="font-size: 10pt; background: white; color: #8000ff; font-family: 'Courier New'; mso-highlight: white;">int</span><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> count </span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">=</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> GetItemCount</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">(</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;">MenuVanDeDag</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">,</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"> q</span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">);</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                                                  <p>
                                                                                    </span>
                                                                                  </p>

                                                                                  <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                                                    <span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"><span style="mso-tab-count: 1;">    </span></span><strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">}</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                                                    <p>
                                                                                      </span>
                                                                                    </p>

                                                                                    <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;">
                                                                                      <strong><span style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New'; mso-highlight: white;">}</span></strong><span style="font-size: 10pt; background: white; color: black; font-family: 'Courier New'; mso-highlight: white;"></p> 

                                                                                      <p>
                                                                                        </span>
                                                                                      </p>

                                                                                      <p class="MsoNormal" style="margin: 0in 0in 10pt;">
                                                                                        <span style="font-size: 12pt; line-height: 115%;"></p> 

                                                                                        <p>
                                                                                          <span style="color: #000000; font-family: Calibri;"> </span>
                                                                                        </p>

                                                                                        <p>
                                                                                          </span>
                                                                                        </p>