<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title> SharePoint </title>
        <link>http://geekswithblogs.net/SSpradlin/category/8011.aspx</link>
        <description> SharePoint </description>
        <language>en-US</language>
        <copyright>Scott Spradlin</copyright>
        <managingEditor>scottgs@aol.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>SharePoint Custom Web Parts from Cheers (The TV Show)</title>
            <link>http://geekswithblogs.net/SSpradlin/archive/2008/07/10/sharepoint-custom-web-parts-from-cheers-the-tv-show.aspx</link>
            <description>&lt;p&gt;So there I was -- another day of writing slick AJAXified custom SharePoint web parts.  This was a simple one.  A series of dropdowns that cause subsequent dropdowns to be re-populated with increasingly restrictive data.&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Planet &lt;/li&gt;    &lt;li&gt;Continent &lt;/li&gt;    &lt;li&gt;Country &lt;/li&gt;    &lt;li&gt;etc. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;But, when I changed the planet choice to be "Earth" the continent choice DID populate with the continents on earth but it caused a complete page round trip -- not the smooth AJAXified action I expected.  Plus, my UpdateProgress panel wasn't being displayed at all, even though I put a 10 second pause in my event handler.  What's wrong?  I'm comparing my CreateChildControls against previous similar projects that worked in the past and everything appears to be correct.&lt;/p&gt;  &lt;p&gt;Can't figure it out so I start randomly moving things around to see what effect that has.  &lt;em&gt;(Highly technical debugging technique.)&lt;/em&gt;  I move a button up into the UpdatePanel and THAT WORKS!  It's the dropdown!  &lt;font color="#d20000"&gt;AJAX hates my dropdowns!&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;I start looking into why it's so.  Do I need to specify the &amp;lt;TRIGGER&amp;gt; manually for these controls?  Say it ain't so!  I've never had to do that in the past.  Wait, someone's post says "make sure you give your dynamically created controls an ID or AJAX won't work for them!"  I add a line similar to:&lt;/p&gt;  &lt;pre class="csharpcode"&gt;      &lt;font size="3"&gt;MyDropdownControl.ID = &lt;span class="str"&gt;"_AnIdHere_"&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;

&lt;p&gt;...and by golly now it works.  Moral of the story?  Always give your dynamically created controls a proper ID.  Just like Norm, web parts want to go -- wait for it -- &lt;strong&gt;where everybody knows their name&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;
  &lt;/p&gt;&lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:e9a206ef-936f-4d51-b21c-f05d46f23eb6" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/SharePoint" rel="tag"&gt;SharePoint&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Web%20Parts" rel="tag"&gt;Web Parts&lt;/a&gt;,&lt;a href="http://technorati.com/tags/AJAX" rel="tag"&gt;AJAX&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=123724"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=123724" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/SSpradlin/aggbug/123724.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Scott Spradlin</dc:creator>
            <guid>http://geekswithblogs.net/SSpradlin/archive/2008/07/10/sharepoint-custom-web-parts-from-cheers-the-tv-show.aspx</guid>
            <pubDate>Fri, 11 Jul 2008 00:49:45 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/SSpradlin/comments/123724.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/SSpradlin/archive/2008/07/10/sharepoint-custom-web-parts-from-cheers-the-tv-show.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/SSpradlin/comments/commentRss/123724.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/SSpradlin/services/trackbacks/123724.aspx</trackback:ping>
        </item>
        <item>
            <title>Duplicate GUID Encountered?</title>
            <link>http://geekswithblogs.net/SSpradlin/archive/2008/07/09/duplicate-guid-encountered.aspx</link>
            <description>&lt;p&gt;My friend &lt;a href="http://www.amazon.com/gp/pdp/profile/A1XLXA72WHYF5J"&gt;Todd Kitta&lt;/a&gt; and I were having a discussion on GUIDs.  He said that one day he compared the number of possible GUIDs to the number of grains of sand estimated to be on all the beaches on the earth.&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2" width="486" border="0"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" align="right" width="123"&gt;Number of GUIDs&lt;/td&gt;        &lt;td valign="top" width="361"&gt;&lt;a href="http://www.wilybeagle.com/guid_store/guid_explain.htm"&gt;340,282,366,920,938,463,463,374,607,431,770,000,000&lt;/a&gt; *&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" align="right" width="124"&gt;Grains of sand&lt;/td&gt;        &lt;td valign="top" width="361"&gt;&lt;a href="http://www.hawaii.edu/suremath/jsand.html"&gt;75,000,000,000,000,000,000&lt;/a&gt; *&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;I guess that's why we don't typically put in error checking to detect duplicate GUIDs.  It hasn't yet, but if it &lt;strong&gt;can&lt;/strong&gt; happen, it'll happen to me.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;   &lt;/p&gt;&lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:25323c03-21cd-466e-bc9a-eecbaca06e4f" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/Programming" rel="tag"&gt;Programming&lt;/a&gt;&lt;/div&gt;   &lt;hr /&gt;  &lt;p align="right"&gt;&lt;em&gt;* Numbers estimated based on the decimal precision of our scientific calculator as provided in Vista.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=123695"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=123695" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/SSpradlin/aggbug/123695.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Scott Spradlin</dc:creator>
            <guid>http://geekswithblogs.net/SSpradlin/archive/2008/07/09/duplicate-guid-encountered.aspx</guid>
            <pubDate>Wed, 09 Jul 2008 20:51:10 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/SSpradlin/comments/123695.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/SSpradlin/archive/2008/07/09/duplicate-guid-encountered.aspx#feedback</comments>
            <slash:comments>4</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/SSpradlin/comments/commentRss/123695.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/SSpradlin/services/trackbacks/123695.aspx</trackback:ping>
        </item>
        <item>
            <title>Publishing InfoPath To SharePoint: &amp;quot;the following url is not valid&amp;quot; Error</title>
            <link>http://geekswithblogs.net/SSpradlin/archive/2008/06/08/publishing-infopath-to-sharepoint-quotthe-following-url-is-not-validquot.aspx</link>
            <description>&lt;p&gt;File this one under the "yet another useless error" category. I was trying to publish a form that I prevously had succesfully published to my development VPC. Every time I tried to publish it would say "the following url is not valid" when I entered the path to the sharepoint site.&lt;/p&gt;  &lt;p&gt;Doing the standard search for the error yielded several potential solutions ranging from re-installing .NET, make sure there's a site at the root "/" and make sure there's a SSP.&lt;/p&gt;  &lt;p&gt;Additional searching yielded the other option of stopping the "System Event Notification"  &lt;a href="http://serena-yeoh.blogspot.com/2006/08/infopathformurlnotvalid.html"&gt;Check out this blog entry.&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Don't you just love obscure error messages?&lt;/p&gt;  &lt;p&gt;   &lt;/p&gt;&lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:56663bf2-80ba-4875-a258-a2415f7175fa" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/SharePoint" rel="tag"&gt;SharePoint&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Programming" rel="tag"&gt;Programming&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=122708"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=122708" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/SSpradlin/aggbug/122708.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Scott Spradlin</dc:creator>
            <guid>http://geekswithblogs.net/SSpradlin/archive/2008/06/08/publishing-infopath-to-sharepoint-quotthe-following-url-is-not-validquot.aspx</guid>
            <pubDate>Sun, 08 Jun 2008 20:27:50 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/SSpradlin/comments/122708.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/SSpradlin/archive/2008/06/08/publishing-infopath-to-sharepoint-quotthe-following-url-is-not-validquot.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/SSpradlin/comments/commentRss/122708.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/SSpradlin/services/trackbacks/122708.aspx</trackback:ping>
        </item>
        <item>
            <title>Debugging Half-Installed-AJAX on SharePoint</title>
            <link>http://geekswithblogs.net/SSpradlin/archive/2008/04/22/debugging-half-installed-ajax-on-sharepoint.aspx</link>
            <description>&lt;p&gt;You've been there.  "&lt;strong&gt;It works on my box!&lt;/strong&gt;"  Our new SharePoint web parts don't work in production!&lt;/p&gt;  &lt;p&gt;This project called for a suite of data entry grids inside custom SharePoint web parts.  The customer already owned &lt;a href="http://www.infragistics.com/"&gt;Infragistics' NetAdvantage for ASP.NET&lt;/a&gt; so I used their UltraWebGrid.  Very slick and easy to deploy with your custom web parts.&lt;/p&gt;  &lt;p&gt;The primary feature they wanted was the cool Excel-like cut-n-paste functionality but that wasn't working in our production environment.  At the beginning of the project, the client said "Oh, we already have AJAX things running in that environment...it's installed and ready to go."  Silly me, I didn't follow through and verify it.  My solution installed without the infamous "&lt;strong&gt;The Web Part you attempted to add no longer exists in the Closed Web Parts Gallery&lt;/strong&gt;" helpful error message...which means that all the dlls that I'm referencing apparently are there.&lt;/p&gt;  &lt;p&gt;After the page loads -- apparently successfully -- and we mouse over the grid, we see the tiny little error message down in the corner of the browser.  Digging deeper I see that JavaScript has encountered a problem and is helping me out by saying "Object Expected".  Even gives me the line where this object is expected.  It's the line that is 65 million characters long that contains all the html for the grid.  So, IE knows the object it's expecting, why can't it share that tidbit?&lt;/p&gt;  &lt;p&gt;Well, we know it's event oriented because the error happens when the mouseover should be firing.  Maybe the JavaScript code that's supposed to fire isn't being loaded properly I say to myself. (Infragistics cleverly bundles all the JavaScript support files as embedded resources so there's no additional headache of distributing them, setting permissions, etc.)  So it looks like it's loading them but apparently it's not.&lt;/p&gt;  &lt;p&gt;Specifically, one of the changes you're instructed to make to the web.config for AJAX installation supports the callbacks for embedded scripts through ScriptResource.axd.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Courier New"&gt;&amp;lt;add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/&amp;gt;&lt;/font&gt; &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Someone had not updated the web.config on the production web front end to include all the &lt;a href="http://sharepoint.microsoft.com/blogs/mike/Lists/Posts/Post.aspx?ID=3"&gt;changes needed for complete AJAX support&lt;/a&gt;.  Thanks buddy.  :)&lt;/p&gt;  &lt;p&gt;I made the seven little changes and bingo -- success.&lt;/p&gt;  &lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:18d6e66f-4fbc-46f5-ba1f-72496ae3b990" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/SharePoint" rel="tag"&gt;SharePoint&lt;/a&gt;,&lt;a href="http://technorati.com/tags/AJAX" rel="tag"&gt;AJAX&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Programming" rel="tag"&gt;Programming&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=121505"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=121505" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/SSpradlin/aggbug/121505.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Scott Spradlin</dc:creator>
            <guid>http://geekswithblogs.net/SSpradlin/archive/2008/04/22/debugging-half-installed-ajax-on-sharepoint.aspx</guid>
            <pubDate>Tue, 22 Apr 2008 16:06:16 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/SSpradlin/comments/121505.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/SSpradlin/archive/2008/04/22/debugging-half-installed-ajax-on-sharepoint.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/SSpradlin/comments/commentRss/121505.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/SSpradlin/services/trackbacks/121505.aspx</trackback:ping>
        </item>
    </channel>
</rss>