<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5264647475061279866</id><updated>2026-08-20T14:12:15.222-07:00</updated><category term="Sharepoint 2010"/><category term="JQuery"/><category term="search"/><category term="Sharepoint 2007"/><category term="SPServices"/><category term="SPWebConfigModification"/><category term="XSLT"/><category term="taxonomy"/><category term="timer jobs"/><category term="MDS"/><category term="RTE"/><category term="Sharepoint 2013"/><category term="Site Templates"/><category term="Tools"/><category term="VS2010"/><category term="dataform"/><category term="display template"/><category term="iframe"/><category term="metadata store"/><category term="web.config"/><category term="Audit Logs"/><category term="Audit settings"/><category term="AverageRating"/><category term="BCS"/><category term="Best Practice"/><category term="Certification"/><category term="Config ID"/><category term="ContentType"/><category term="Deployment"/><category term="Dispose"/><category term="Error"/><category term="Excel Filters"/><category term="Export to SpreadSheet"/><category term="External ContentType"/><category term="Feature difference"/><category term="Features"/><category term="HTTPModule"/><category term="Integration"/><category term="List Template ID"/><category term="List items"/><category term="Localization"/><category term="MOSS 2007"/><category term="MOSS 2007 vs WSS 2003"/><category term="Nintex"/><category term="ObjectDataSource"/><category term="Pagelayouts"/><category term="Permissions"/><category term="Resources"/><category term="SOAP"/><category term="SP2013"/><category term="SPFieldUserValue"/><category term="SPGridView"/><category term="SPListItem"/><category term="SPListItem.SystemUpdate()"/><category term="SPUser"/><category term="SPWebPartManager"/><category term="Sharepoint"/><category term="SkyDrive"/><category term="SocialComments"/><category term="SocialTags"/><category term="SocialTerms"/><category term="SystemUpdate()"/><category term="UIVersion"/><category term="URL API"/><category term="WSS 2003"/><category term="WebService"/><category term="Wiki"/><category term="XML"/><category term="copy paste"/><category term="copyappbincontent"/><category term="demotion"/><category term="deployment issues"/><category term="firstlook"/><category term="globalization"/><category term="microstrategy"/><category term="promotion"/><category term="retract issues"/><category term="stsadm"/><category term="summary link webpart"/><category term="upgrade"/><category term="usage reporting"/><category term="videos"/><category term="webdav"/><category term="winforms"/><category term="workflow"/><title type='text'>MJ&#39;s Sharepoint Blog</title><subtitle type='html'>Yet, another Sharepoint geek&#39;s journey</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>69</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-586521966807905949</id><published>2015-02-07T12:52:00.000-08:00</published><updated>2015-02-07T12:52:26.924-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="Nintex"/><title type='text'>Add custom script to Nintex forms</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
At the end of this blog post you will learn how to&lt;br /&gt;
&lt;br /&gt;
- Submit data to mulitple lists from a single form(here Nintex)&lt;br /&gt;
- Create a new item using client side script(Jquery)&lt;br /&gt;
- Have your own code/javascript run when submitting the OOTB submit/save button &lt;br /&gt;
- Add custom script or jquery in Nintex forms accessing controls&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH9iEn25SajiHBfBJjDGei8jw3iy9eWt0RsIXSO__iv1xGB_H9LmAt76ugRpdd6frtdl5I85W6brTbaXvyKG6Q99kCADStCbX3hjgTbEPm3mLVD9peO4Z9LMVABvA8CWCPXXSzIKSLkrxa/s1600/nintexCtrlSettings.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH9iEn25SajiHBfBJjDGei8jw3iy9eWt0RsIXSO__iv1xGB_H9LmAt76ugRpdd6frtdl5I85W6brTbaXvyKG6Q99kCADStCbX3hjgTbEPm3mLVD9peO4Z9LMVABvA8CWCPXXSzIKSLkrxa/s1600/nintexCtrlSettings.png&quot; height=&quot;165&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
NWF$(document).ready(function () {&lt;br /&gt;
&lt;br /&gt;
var formclick = $(&quot;input[commandtype*=&#39;Save&#39;]&quot;).attr(&quot;onclick&quot;);&lt;br /&gt;
formclick = &quot;if(!UpdateContacts()){return false;};&quot; + formclick.replace(&quot;javascript:&quot;,&quot;&quot;);&lt;br /&gt;
$(&quot;input[commandtype*=&#39;Save&#39;]&quot;).attr(&quot;onclick&quot;,formclick);&lt;br /&gt;
&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
Above function will bind custom script/function to the OOB save/submit button on the Nintex form but for some reason i could not get the client validation happen before the submit works.&lt;br /&gt;
&lt;br /&gt;
function UpdateContacts()&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;mode = &quot;New&quot;;&lt;br /&gt;
&amp;nbsp;var aname =&amp;nbsp;$(&#39;#&#39;+accountnameCtrl).val();&lt;br /&gt;
&amp;nbsp;var fn = $(&#39;#&#39;+firstnameCtrl).val();&lt;br /&gt;
&amp;nbsp;var ln = $(&#39;#&#39;+lastnameCtrl).val();&lt;br /&gt;
&amp;nbsp;var email = $(&#39;#&#39;+emailCtrl).val();&lt;br /&gt;
&amp;nbsp;var&amp;nbsp;phone = $(&#39;#&#39;+phoneCtrl).val();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; $().SPServices({&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; operation: &quot;UpdateListItems&quot;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; async: false,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; batchCmd: &quot;New&quot;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; listName: &quot;Contacts&quot;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; valuepairs: [[&quot;FirstName&quot;, fn],[&quot;LastName&quot;, ln],[&quot;Phone&quot;,phone],[&quot;Email&quot;,email]],&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; completefunc: function(xData, Status) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;console.log(status);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $(xData.responseXML).find(&quot;ErrorText&quot;).each(function() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(&quot;Error :&quot;+$(this).text());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/586521966807905949/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2015/02/add-custom-script-to-nintex-forms.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/586521966807905949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/586521966807905949'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2015/02/add-custom-script-to-nintex-forms.html' title='Add custom script to Nintex forms'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH9iEn25SajiHBfBJjDGei8jw3iy9eWt0RsIXSO__iv1xGB_H9LmAt76ugRpdd6frtdl5I85W6brTbaXvyKG6Q99kCADStCbX3hjgTbEPm3mLVD9peO4Z9LMVABvA8CWCPXXSzIKSLkrxa/s72-c/nintexCtrlSettings.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-1171263417398948172</id><published>2015-02-07T12:46:00.000-08:00</published><updated>2015-02-07T12:58:33.099-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SPServices"/><title type='text'>Batch update list items using client scripts</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
We know that SPServices has a way to create new or update items but when in the case of creating multiple items(say 10), calling the same query 10 times is not going to be good from performance perspective. so lets use batch command to do it from client side as below &lt;br /&gt;
&lt;br /&gt;
var query_string = &quot;&lt;batch onerror=&quot;Continue&quot;&gt;&quot;;&lt;br /&gt;for(int i=1;i&amp;lt;=5;i++)&lt;br /&gt;{&lt;br /&gt;var title = $(&#39;input#title&#39;+i).val();&lt;br /&gt;var desc = $(&#39;input#desc&#39;+i).val();&lt;br /&gt;query_string += &quot;&amp;lt;Method ID=&#39;1&#39; Cmd=&#39;New&#39;&amp;gt;&quot;;&lt;br /&gt;query_string += &quot;&amp;lt;Field Name=&#39;Title&#39;&amp;gt;&quot;+title+&quot;&amp;lt;/Field&amp;gt;&quot;;&lt;br /&gt;query_string += &quot;&amp;lt;Field Name=&#39;Description&#39;&amp;gt;&quot;+desc+&quot;&amp;lt;/Field&amp;gt;&quot;;&lt;br /&gt;query_string += &quot;&amp;lt;/Method&amp;gt;&quot;;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;query_string += &quot;&lt;/batch&gt;&quot;;&lt;br /&gt;
&lt;br /&gt;
$().SPServices({&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; operation: &quot;UpdateListItems&quot;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; async: false,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; batchCmd=&quot;New&quot;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; listName: &quot;Requests&quot;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; updates: query_string,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; completefunc: function(xData, Status) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(xData.responseText);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
for update operations, batchCmd should be updated as &#39;Update&#39; and same in the query string as well.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/1171263417398948172/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2015/02/batch-update-list-items-using-client.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/1171263417398948172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/1171263417398948172'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2015/02/batch-update-list-items-using-client.html' title='Batch update list items using client scripts'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-5283351157791763225</id><published>2014-10-19T12:16:00.003-07:00</published><updated>2014-10-19T12:19:34.655-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="XSLT"/><title type='text'>Calculate days difference in Dataview webpart</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
To calculate days difference from 2 date time type fields in XSLT, hidden function &lt;b&gt;DateTimeTick &lt;/b&gt;from ddwrt can be used as below,&lt;br /&gt;
&lt;br /&gt;
number((number(ddrwt:DateTimeTick(string(@MeetingStartDate))) - number(ddwrt:DateTimeTick(string(@MeetingEndDate )))) div 864000000000)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/5283351157791763225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/10/calculate-days-difference-in-dataview.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/5283351157791763225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/5283351157791763225'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/10/calculate-days-difference-in-dataview.html' title='Calculate days difference in Dataview webpart'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-3050571674386280122</id><published>2014-10-19T11:59:00.001-07:00</published><updated>2014-10-19T12:06:14.399-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="XSLT"/><title type='text'>Handle case insensitive in XSLT</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;

&lt;br /&gt;
&lt;br /&gt;
We may be looking for functions like ToUpper or ToLower but Translate is the function given in&amp;nbsp; XSLT.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;xsl:variable name=&quot;lowercase&quot; select=&quot;&#39;abcdefghijklmnopqrstuvwxyz&#39;&quot; /&amp;gt; &lt;br /&gt;
&amp;lt;xsl:variable name=&quot;uppercase&quot; select=&quot;&#39;ABCDEFGHIJKLMNOPQRSTUVWXYZ&#39;&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;xsl:variable name =&quot;Rows&quot; select=&quot;/dsQueryResponse/Rows/Row[contains(translate(@UserName,$uppercase,$lowercase),&#39;smith&#39;)]&quot; /&amp;gt;&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Do not forget to include single quotes for lowercase/uppercase variables.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/3050571674386280122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/10/handle-case-insensitive-in-xslt.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/3050571674386280122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/3050571674386280122'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/10/handle-case-insensitive-in-xslt.html' title='Handle case insensitive in XSLT'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-7812207565644399448</id><published>2014-10-19T11:36:00.000-07:00</published><updated>2014-10-19T11:37:34.674-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dataform"/><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint 2007"/><category scheme="http://www.blogger.com/atom/ns#" term="XSLT"/><title type='text'>Form was customized not working with attachment</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;

&lt;br /&gt;
&lt;br /&gt;
Are you troubled with this error? then 99% of chance that you have done something very similar to what i did, building a custom list form(new/edit) where custom list form(dataform)&amp;nbsp; webpart is added. Also, i believe this is happen to be in only in SharePoint 2007(did not test in 2010/2013).&lt;br /&gt;
&lt;br /&gt;
So when a custom list form webpart is added in the sharepoint designer, it supposed to work as is without any customizations but attachment functionality is broken as it was never completely built. MSFT has released a fix for it. There is a XSLT code snippet you need to copy from&amp;nbsp;&lt;a href=&quot;http://support.microsoft.com/kb/953271&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt; to get this fixed, its pretty straightforward.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/7812207565644399448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/10/form-was-customized-not-working-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/7812207565644399448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/7812207565644399448'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/10/form-was-customized-not-working-with.html' title='Form was customized not working with attachment'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-2168434267087350440</id><published>2014-06-12T16:35:00.002-07:00</published><updated>2014-06-12T16:35:45.901-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="SPServices"/><title type='text'>Check in file using Client script</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Here is a simple way of doing few file operations in sharepoint using client script. You can try JQuery for client object model or CSOM or JQuery with SPServices(in my case).&lt;br /&gt;
&lt;br /&gt;
function DiscardCheckOut(url)&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var errorMessage = &quot;&quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $().SPServices({&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; operation: &quot;UndoCheckOut&quot;&lt;/b&gt;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; async: false,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pageUrl: url,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; completefunc: function (xData, Status) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; $(xData.responseXML).find(&quot;errorstring&quot;).each(function() {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; errorMessage = $(this).text();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(xData.responseXML).find(&quot;faultstring&quot;).each(function() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; errorMessage += $(this).text();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var undoCheckOutVal= $(xData.responseXML).find(&quot;UndoCheckOutResult&quot;).text();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(undoCheckOutVal == &quot;true&quot;)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(&quot;Operation success&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(&quot;Operation failed:&quot;+errorMessage);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; }&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function CheckIn(furl)&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; var errorMessage = &quot;&quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; $().SPServices({&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp; operation: &quot;CheckInFile&quot;&lt;/b&gt;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; async: false,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; pageUrl: furl,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; comment&#39;: &quot;Checked in from checkout list&quot;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; CheckinType: 1,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; completefunc: function (xData, Status) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; //get errorstring&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(xData.responseXML).find(&quot;errorstring&quot;).each(function() {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; message = $(this).text();&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; });&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //get fault string&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(xData.responseXML).find(&quot;faultstring&quot;).each(function() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; message +=&quot; &quot;+ $(this).text();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; });&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; var checkInResultVal= $(xData.responseXML).find(&quot;CheckInFileResult&quot;).text();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; if(checkInResultVal == &quot;true&quot;)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(&quot;Check-in operation success&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(&quot;Operation failed:&quot;+errorMessage);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; });&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/2168434267087350440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/06/check-in-file-using-client-script.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/2168434267087350440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/2168434267087350440'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/06/check-in-file-using-client-script.html' title='Check in file using Client script'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-66886779098267091</id><published>2014-06-12T16:32:00.000-07:00</published><updated>2014-06-12T16:32:45.857-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Error"/><category scheme="http://www.blogger.com/atom/ns#" term="Wiki"/><title type='text'>Ribbon Tab with id: &quot;Ribbon.Read&quot; has not been made available for this page or does not exist. Use Ribbon.MakeTabAvailable()</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;‘The Ribbon Tab with id: &quot;Ribbon.Read&quot; has not been made available for this page or does not exist. Use Ribbon.MakeTabAvailable()’&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Have you seen that crazy error on your page? Don&#39;t worry its not your fault but a riddle left by MSFT. I&#39;m certain that you got this error when playing with wiki pages. Yes, if wiki pages are rendered in IFrame or wiki page url has IsDlg=1(as part of querystring) this error shows up in sharepoint logs. As a quick around you can change the type of the page from wiki to webpart. But, if you are reluctant to do so then jump to a &lt;a href=&quot;http://blog.furuknap.net/solving-the-ribbon-tab-with-id-ribbon-read-has-not-been-made-available-for-this-page-or-does-not-exist-use-ribbon-maketabavailable&quot; target=&quot;_blank&quot;&gt;custom solution&lt;/a&gt; for a fix.&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/66886779098267091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/06/ribbon-tab-with-id-ribbonread-has-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/66886779098267091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/66886779098267091'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/06/ribbon-tab-with-id-ribbonread-has-not.html' title='Ribbon Tab with id: &quot;Ribbon.Read&quot; has not been made available for this page or does not exist. Use Ribbon.MakeTabAvailable()'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-8335695897334870565</id><published>2014-06-12T16:13:00.001-07:00</published><updated>2014-06-12T16:13:45.119-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="search"/><title type='text'>List Checkout documents using search</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Today im gonna show you an easiest OOTB approach using search(with no coding) to list/display all checked out documents(across webapp/site collections) to current user. Based on the result sources/content source configured on sharepoint farm, search query can be run on wider scope of data.&lt;br /&gt;
&lt;br /&gt;
Configure content search webpart with the below query(copy paste in query text box) in advanced mode.&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;nbsp;CheckoutUserOWSUSER:{User.Name} {contentclass:STSListItem OR IsDocument:True} &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/8335695897334870565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/06/list-checkout-documents-using-search.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/8335695897334870565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/8335695897334870565'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/06/list-checkout-documents-using-search.html' title='List Checkout documents using search'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-768514671264138015</id><published>2014-06-12T16:09:00.000-07:00</published><updated>2014-06-12T16:09:23.561-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="search"/><category scheme="http://www.blogger.com/atom/ns#" term="SkyDrive"/><title type='text'>List shared with me in SkyDrive</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Skydrive does seems to have a feature, shared with me that will allow users to see all the documents shared only with them. This is available only in office365/cloud version of sharepoint and is not with Sharepoint on-premise.&lt;br /&gt;
&lt;br /&gt;
When digging into on-premise mysite features, found a page,&lt;b&gt;sharedwithme.aspx&lt;/b&gt; under personal/ADid/documents/forms. Here, documents is nothing but a special library used for skydrive for the user. This library will have all the documents added by you and shared with you or by others. Sharedwithme.aspx(acting like a view) will show the documents shared with current user. Looking at the view, with missing values for the columns(shared by/modified) and column header mismatch with actual datatable its easy to say that this feature is not completely functional. I&#39;m not sure if this is ever meant to be found or working. Also, there is no OOTB way to have the left navigation link for sharedwithme view. Though, this can be added using jquery but a lot of work(not sure how far feasible) need to be done to the OOTB sharedwithme webpart used on this view. So, i changed the strategy and built it using content search webpart.Below is the search query i used to configure content search webpart to fetch all shared items with current user.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;IsMyDocuments:1 IsDocument -Author:{User.Name} -SharedWithInternal:&quot;NT AUTHORITY\Authenticated Users&quot;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
IsMyDocuments is used to identify all documents from skydrive(mydocuments). Above query will filter out all the documents authored by current user and show only shared with him/her.&lt;br /&gt;
&lt;br /&gt;
Few weeks after this implementation, MS has released OneDrive for business. I did&#39;nt get a chance to review its features but worth to look at it before doing this.&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/768514671264138015/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/06/list-shared-with-me-in-skydrive.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/768514671264138015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/768514671264138015'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/06/list-shared-with-me-in-skydrive.html' title='List shared with me in SkyDrive'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-1382014939985220282</id><published>2014-05-29T14:32:00.000-07:00</published><updated>2014-05-29T14:57:10.364-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="display template"/><category scheme="http://www.blogger.com/atom/ns#" term="SP2013"/><title type='text'>Understand &amp; Customize Display Templates</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
Display templates
are new in sharepoint 2013 replacing XSLT in 2010 which will be used to
customize the UI/display of the webparts. Like, we had item.xsl and control.xsl
back then, its same strategy in 2013 as well. Entire UI code for a webpart is
split into 2 different files, Control and item template. Control template will
have the markup that creates the base look/container/header section for the
webpart where as item template will&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;have
the markup defined for each result/item displayed.&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
For every display
template(item/control) file(.html) uploaded to the master page gallery, a
respective js file will be generated if no syntax errors found. Publishing
features at site collection need to be activated so sharepoint could generate
those files.&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
To start with
creating a custom item template, copy any of the OOTB template and start
following its pattern and conventions. I have explained few notations to make
it easy for you and myself.&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
Ensure all the
changes are written inside the first div under the body of the template.
Sharepoint reads only the markup which is inside the first div(excluding div
element itself) while applying the item template to each item in the webpart.&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
I have copied part
of the code from item_picture3lines.html for better explanation. Here, the
first div is&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;with id=item_picture3lines.
Id of the div can be changed but not the div element itself.&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;i&gt;&amp;lt;body&amp;gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;lt;div id=&quot;Item_Picture3Lines&quot; 
&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;lt;!--#_&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;var encodedId = 
$htmlEncode(ctx.ClientControl.get_nextUniqueId() + &quot;_picture3Lines_&quot;);&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;var linkURL = $getItemValue(ctx, &quot;Link URL&quot;);&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;linkURL.overrideValueRenderer($urlHtmlEncode);&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;...&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;...&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp;_#--&amp;gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&amp;lt;div class=&quot;cbs-picture3LinesContainer&quot; 
style=&quot;font-size:11px;&quot; id=&quot;_#= containerId =#_&quot; 
data-displaytemplate=&quot;_#= $htmlEncode(dataDisplayTemplateTitle) 
=#_&quot;&amp;gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;...&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;…&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;lt;/div&amp;gt; &lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;lt;/div&amp;gt; &lt;/span&gt;
&amp;lt;/body&amp;gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;body&gt;&lt;/body&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Scripting&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
Javascript/jquery
can be written by wrapping it with &amp;lt;!--#_&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;_#--&amp;gt; without explicit script tags.
So it&#39;s going to look like,&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;output_element&quot; id=&quot;html_output&quot;&gt;
&lt;i&gt;&amp;lt;!--#_&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Var temp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;alert(&quot;calling script from display template&quot;);&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp;_#--&amp;gt;
 &lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;!--#_ &lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin:0in;font-family:Calibri;font-size:11.0pt&quot;&gt;
&lt;span style=&quot;font-style:italic&quot;&gt;Var temp;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin:0in;font-family:Calibri;font-size:11.0pt&quot;&gt;
&lt;span style=&quot;font-style:italic&quot;&gt;alert(&quot;calling script from display
template&quot;);&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin:0in;font-family:Calibri;font-size:11.0pt&quot;&gt;
&lt;span style=&quot;font-style:italic&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;_#--&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
External js file can
be included by using the function,includeScript. First parameter is always
this.url&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;$includeScript&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(this.url,
&quot;~sitecollection/_layouts/15/reputation.js&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
Similarly external
CSS can be referenced using &lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;$includeCSS&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(this.url, &quot;~sitecollection/site
library/custom.css&quot;);&lt;/span&gt; &lt;/div&gt;
Read &lt;a href=&quot;http://sharepointcustomization.blogspot.com/2014/05/run-custom-script-after-display.html&quot; target=&quot;_blank&quot;&gt;here &lt;/a&gt;on how to
run the scripts after display template or complete DOM&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;render($(document).ready())&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Property Mappings&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
To add new
lines&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;in content search webpart or do
property/managed metadata mapping in display template,&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
look for
mso:managedPropertyMapping in item template which is responsible for mapping
the columns to the variables in the display template and to show in the
toolpart.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;lt;mso:ManagedPropertyMapping
msdt:dt=&quot;string&quot;&amp;gt;&#39;Link URL&#39;{Link URL}:&#39;Path&#39;,&#39;Line 1&#39;{Line
1}:&#39;Title&#39;,&#39;Line 2&#39;{Line 2}:&#39;Author&#39;,&#39;Line 3&#39;{Line 3}:&#39;ModifiedOWSDATE&#39;,&#39;&lt;b&gt;FileExtension&lt;/b&gt;&#39;&amp;lt;/mso:ManagedPropertyMapping&amp;gt; &lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&#39;Link URL&#39;{Link
URL}:&#39;Path&#39; defines single mapping for a managed metadata. &lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&#39;&lt;b&gt;Link URL&lt;/b&gt;&#39;{Link URL}:&#39;Path&#39;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;- first token represents the label of the
property displayed in the toolpart under property mappings &lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&#39;Link URL&#39;&lt;b&gt;{Link URL}&lt;/b&gt;:&#39;Path&#39; - second token represents the
display name of the variable reference to the actual managed metadata property.
This variable will be used in the display template to access the value.&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&#39;Link URL&#39;{Link
URL}:&#39;&lt;b&gt;Path&lt;/b&gt;&#39;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;- last token is the actual name of the managed metadata that is used in
display template. This is not the display name of the column but the name of
the managed metadata property mapped to the crawled property in search schema.&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
In case of mapping
multiple metadata properties to a single display template property variable,
follow the below syntax&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&#39;Link URL&#39;{Link
URL}:&#39;&lt;b&gt;Path;Url&lt;/b&gt;&#39;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
When no mapping
required but need to access the value of managed metadata inside display
template just add it in single quotes separated by comma like FileExtension is
added.&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Context&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
Sharepoint by
default loads the context(ctx) as part of display template that can be used to
access many of the contextual properties when customizing display templates.&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
Access the value of
a mapped property by using getitemValue&lt;span style=&quot;font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
Var value = $&lt;span style=&quot;font-weight: bold;&quot;&gt;getItemValue&lt;/span&gt;(ctx, &quot;Line 2&quot;);&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
$getItemValue takes
the display name of the property(second token in parenthesis) as the second
parameter. This way code is generic and it still works even if the property
mapping is changed in webpart configuration. Also, if there are managed
metadata properties that need to be used(like listItemID,ItemID) that don’t
need to be listed in the property mappings, the value of it can be fetched by
directly passing the manage metadata property name as per search schema.&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
The above line of
code fetches Author value as {Line 2} is mapped to Author in the display
template. Below code also fetches the same value,&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;span style=&quot;font-style: italic;&quot;&gt;Var authorVal&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;= $getItemValue(ctx, &quot;Author&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
Few contextual
properties which can be fetched from context,&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
ctx.CurrentItem.ListItemID&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
ctx.CurrentItem.SPSiteUrl&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
To retrieve the
current item index&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;or current row number
use the property CurrentItemIdx from ctx&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;object.&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;span style=&quot;font-style: italic;&quot;&gt;Var currentItemIndex&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;= ctx.&lt;/span&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;CurrentItemIdx&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
Get the row count or
total number of rows with,&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;span style=&quot;font-style: italic;&quot;&gt;Ctx.CurrentGroup.&lt;/span&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;RowCount&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
Row count can be
used in the logic when to apply alternate css/styles to the rows, where as row
id to display any header section(table header)&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;for the entire webpart. Header section can be added to control display template
but if you don’t want to change 2 different files, just check for
currentitemidx=1 and add header section markup in the item template
itself.&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;Note that these properties wont
work in control display template.&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
To find if the
results are empty inside control display template,&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;I checked for DOM length being empty for &lt;span style=&quot;font-style: italic;&quot;&gt;div.ms-srch-result-noResults.&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;Thought of using&lt;span style=&quot;font-style: italic;&quot;&gt;
if (ctx.ClientControl.get_shouldShowNoResultMessage())&lt;/span&gt; but did not work
as expected. Yet to find a better approach.&lt;br /&gt;
&lt;br /&gt;
Get the unique id by using ctx.ClientControl.&lt;b&gt;get_nextUniqueId&lt;/b&gt;(); &lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Access values in markup&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
Display value of the
managed metadata property or a variable as part of the markup. Here authorVal
is the variable in the above script having the value of the managed metadata
property, Author.&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;&amp;lt;span&amp;gt;_#= authorVal =#_&amp;lt;/span&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/1382014939985220282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/05/understand-customize-display-templates.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/1382014939985220282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/1382014939985220282'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/05/understand-customize-display-templates.html' title='Understand &amp; Customize Display Templates'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-828764014158768710</id><published>2014-05-27T12:42:00.001-07:00</published><updated>2014-05-27T12:42:49.658-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="MDS"/><title type='text'>Execute script after MDS load</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
$(document).ready() always works when its a complete page load/refresh but not when there are controls enabled with ajax doing async callback or Minimial download strategy(sharepoint 2013) is enabled for the site that reloads only the changes in the page.Know more about Minimal Download Strategy by reading &lt;a href=&quot;http://sharepointcustomization.blogspot.com/2014/05/startaspx-minimal-download-strategy.html&quot; target=&quot;_blank&quot;&gt;this&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Also, Its not always necessary that the page is loaded following MDS but sometime may reload. So both cases need to be handled when writing scripts(jquery/javascript)&lt;br /&gt;
Below is the code that i could make use of that could fulfill this scenario.&lt;br /&gt;
&lt;br /&gt;
$(function () {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExecuteOrDelayUntilScriptLoaded(function () {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (typeof asyncDeltaManager != &quot;undefined&quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; asyncDeltaManager.add_endRequest(doSomething); //after MDS loads the changes&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else doSomething();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, &quot;start.js&quot;);&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;function doSomething()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; //write something&lt;br /&gt;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/828764014158768710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/05/execute-script-after-mds-load.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/828764014158768710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/828764014158768710'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/05/execute-script-after-mds-load.html' title='Execute script after MDS load'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-2748009433069563236</id><published>2014-05-23T18:23:00.000-07:00</published><updated>2014-05-23T18:23:50.964-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="SPServices"/><title type='text'>Autocomplete using SPServices with JQuery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Call it auto suggestion or type ahead or auto complete, its pretty similar that im trying to achieve here in SharePoint using SPServices API with JQuery.&lt;br /&gt;
Get your copy of SPServices js from&amp;nbsp;http://spservices.codeplex.com/ and have it in a library or layouts folder so it can be referenced in the script that we gonna write.&lt;br /&gt;
&lt;br /&gt;
Here, im implementing a sharepoint site page that has a custom filter option that will allow user to filter the data in mulitple listviewwebpart added to the same page.Sometime names may sound same but spell different, so i want to give auto suggestions when user starts typing the text in filter textbox.&lt;br /&gt;
&lt;br /&gt;
$(document).ready(function(){&lt;br /&gt;
&amp;nbsp;$().SPServices.SPAutocomplete({&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;sourceList:&quot;Employee list&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;sourceColumn: &quot;FullName&quot;, // SPField name from which data will be pulled using lists webservice&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;columnName:&quot;FilterByName&quot;, // either sp field name if using on list form or input field control title attribute&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;ignoreCase:true,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;numChars:3, //autocomplete shows when there is a minimum of 3 char in the textbox of the field/control&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;slideDownSpeed: 1000,&lt;br /&gt;
&amp;nbsp; });&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
Once value is set in filtertexbox &amp;nbsp;and submitted i have an additional script that appends the querystring FilterField1=fileldname&amp;amp;FilterValue1=value that will filters the data in multiple list webparts.&lt;br /&gt;
&lt;br /&gt;
SPServices made developers job easy when it comes to writing client side code. Ofcourse, you can achieve the same thing by writing your own code from scratch with a jquery ajax request to sharepoint lists webservice and bind results with textbox.&lt;br /&gt;
Im hoping SPServices will introduce a way to find the input control not just by &#39;Title&#39; but also by name/id because some sharepoint input controls(may not be list forms) will not have title attribute set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/2748009433069563236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/05/autocomplete-using-spservices-with.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/2748009433069563236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/2748009433069563236'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/05/autocomplete-using-spservices-with.html' title='Autocomplete using SPServices with JQuery'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-6571134840897896062</id><published>2014-05-23T18:21:00.002-07:00</published><updated>2014-05-23T18:21:53.175-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MDS"/><title type='text'>start.aspx# Minimal Download Strategy</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Why is that junk(start.aspx#/../) getting added in sharepoint 2013 url?&lt;br /&gt;
Why do the urls in sharepoint 2013 do not look like they were anymore?&lt;br /&gt;
Untill 2010 Sharepoint used to reload the entire page for every request sent from browser. In 2013, a site scope featured, Minimal Download Strategy(MDS) is introduced that will minimize the content to be downloaded from server when user navigates from page to page.&lt;br /&gt;
&lt;br /&gt;
When request is sent from browser, the delta is calculated which is equal to the difference between the current page content and the response for the new request. This delta will be sent to MDS engine and start.aspx is responsible for loading the changed content in the page.Anything after start.aspx# represents the relative url of the target page. Page is completely reloaded only when MDS thinks its not just part of the page that changed but all of it and for other reasons listed &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/office/dn456544%28v=office.15%29.aspx&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;. This feature is optional and considered to improve any performance on the page. Be aware of this feature activation status when writing any client scripts playing with url or trying to do something on document ready, because page may not be reloading so do your scripts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/6571134840897896062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/05/startaspx-minimal-download-strategy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/6571134840897896062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/6571134840897896062'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/05/startaspx-minimal-download-strategy.html' title='start.aspx# Minimal Download Strategy'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-4881526159878899267</id><published>2014-05-22T19:10:00.003-07:00</published><updated>2014-05-23T12:00:38.844-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="webdav"/><title type='text'>Email with attachment in sharepoint</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Today i had to implement a feature, email(using lotus notes) a file as an attachment in SharePoint 2013. I would concentrate here on the approach taken and leave &#39;how to create ribbon button&#39; for you to google.&lt;br /&gt;
&lt;br /&gt;
If we recall,SharePoint 2010 has the ribbon option, Email a link that allows user to send an email with link to the file/item of document library which even do not exist in SharePoint 2013 for document libraries. SharePoint is doing this by using mailto protocol which i considered as the option to implement my requirement leaving behind the other option that deals with building smtp messages.&lt;br /&gt;
&lt;br /&gt;
msdn documentation says that mailto protocol do not support attach header anymore and so do the other blog posts. But, in my case with lotus notes i&#39;m able to use attach option with mailto protocol to invoke lotus notes and create a new email with file attached that&#39;s ready to send. Not sure if this works with latest versions of IE and outlook. Note that mailto invokes the default email client set on the user machine.&lt;br /&gt;
&lt;br /&gt;
Syntax:&lt;br /&gt;
&lt;b&gt;mailto&lt;/b&gt;:?subject=shared a link&amp;amp;body=message&amp;amp;attach=\\domain.com\sites\dept\filename.docx&lt;br /&gt;
&lt;br /&gt;
Path that is passed to attach attribute recognized by &lt;b&gt;WebDAV &lt;/b&gt;to connect to sharepoint site and loads the file.Its pretty similar to how explorer view works in sharepoint. Files in sharepoint can be accessed outside either by using WebDAV or FPRPC.&lt;br /&gt;
Ensure to encode the special characters in the above line.&lt;br /&gt;
&lt;br /&gt;
It worked so well and a quick implementation but lately i realized it not working with https sites which has become a roadblock. After so much of play with webdav url pattern i found the solution and have to modify the protocol to,&lt;br /&gt;
&lt;br /&gt;
mailto:?subject=shared a link&amp;amp;body=message&amp;amp;attach=\\domain.com@SSL\sites\dept\filename.docx&lt;br /&gt;
&lt;br /&gt;
That way im able to convey to webdav that the location of the file is on HTTPS site and the authentication is successful. Though it worked on all windows machines its a different story on how to make it work on MAC /apple machines(with finder).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/4881526159878899267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/05/email-with-attachment-in-sharepoint.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/4881526159878899267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/4881526159878899267'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/05/email-with-attachment-in-sharepoint.html' title='Email with attachment in sharepoint'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-1204216377257465854</id><published>2014-05-22T19:08:00.001-07:00</published><updated>2014-05-22T19:08:33.518-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="display template"/><title type='text'>Run custom script after display templates render</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
I have been trying to run some custom javascript after $(document).ready in sharepoint control display template and stuck very badly.No matter where i place the js code in the display template(html) file, DOM is not ready by the time document.ready executes. So elements references in the script always return null. It seems that DOM rendering and the way MS handled events is different in the case of the display templates.&lt;br /&gt;
&lt;br /&gt;
Exploring other templates, figured out that below code works when added to control display template. Bind the function that need to be called with &lt;b&gt;OnPostRender &lt;/b&gt;event on the ClientContext object, ctx(instantiated by sharepoint)&lt;br /&gt;
&lt;br /&gt;
ctx.OnPostRender = [];&lt;br /&gt;
&lt;br /&gt;
ctx.OnPostRender.push(function () {&lt;br /&gt;
&amp;nbsp; &amp;nbsp;alert(&quot;Document is ready&quot;);&lt;br /&gt;
&amp;nbsp; // logic goes here&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
In the above code post render callback is used to call custom script that will run after every script is called and complete DOM is rendered in display template.&lt;br /&gt;
OnPostRender = $(document).ready when working with sharepoint display templates. No more scratching.&lt;br /&gt;
Custom logic can be moved to an external file and refered in the display template as below or call it by using &lt;b&gt;SP.SOD&lt;/b&gt; functions,&lt;br /&gt;
&lt;br /&gt;
$includeScript(this.url, https://sharepointcustomization.blogspot.com/js/jquery.min.js);&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/1204216377257465854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/05/run-custom-script-after-display.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/1204216377257465854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/1204216377257465854'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/05/run-custom-script-after-display.html' title='Run custom script after display templates render'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-5953523788436809574</id><published>2014-05-21T12:37:00.001-07:00</published><updated>2014-05-21T17:13:29.623-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iframe"/><title type='text'>Sharepoint content cannot be displayed in an IFrame</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&quot;This content cannot be displayed in IFrame.To help protect the security of information you enter into this website the publisher of this content does not allow it to be displayed in a frame&quot;&lt;br /&gt;
&lt;br /&gt;
You may be experiencing the above error if you are trying to open a sharepoint page/webpart page in iframe(say ModalDialog) either it could be cross domain or in same domain.&lt;br /&gt;
&lt;br /&gt;
Sharepoint 2013 has added settings to control the source of iframe at site collection level under HTML Field security. This will only allow the current domain/page to accept the content from the specific domain that may be added in the iframe settings. But if you read the top error message, the source domain/page thats rendering in iframe itself is responsible for the behavior not the destination page/domain. So this setting would not resolve the issue. To get rid of the error add the below tag to masterpage/page layout/application page/visual webpart as required..&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;border: 0px; color: blue; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20.162017822265625px; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20.162017822265625px; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;WebPartPages&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20.162017822265625px; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20.162017822265625px; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;AllowFraming&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: red; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20.162017822265625px; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20.162017822265625px; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20.162017822265625px; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&quot;AllowFraming1&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; border: 0px; color: red; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20.162017822265625px; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20.162017822265625px; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20.162017822265625px; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20.162017822265625px; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; height=&quot;16&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/5953523788436809574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/05/sharepoint-content-cannot-be-displayed.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/5953523788436809574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/5953523788436809574'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2014/05/sharepoint-content-cannot-be-displayed.html' title='Sharepoint content cannot be displayed in an IFrame'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-8444954187538974953</id><published>2013-04-07T00:54:00.002-07:00</published><updated>2013-04-07T01:10:54.660-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="search"/><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint 2013"/><title type='text'>Sharepoint 2013 Search REST service and 2010 deprecated</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; height=&quot;16&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I may be the first guy dealing with sharepoint 2013 integration with sharepoint 2010. did not that(integration instead of migration) sound little unusual? yeah, my client wants to leverage Sharepoint 2013 search features(preview/result sources) only but not ready yet for complete migration. So now that we decided to use SP2013 search i want to take advantage of it in every angle not just at configuration level but even in the code. See what sharepoint 2013 search provides in my earlier &lt;a href=&quot;http://sharepointcustomization.blogspot.in/2013/03/sharepoint-2013-you-must-be-already.html&quot; target=&quot;_blank&quot;&gt;post&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
There is demand of webparts pulling information across sitecollections and webapplication.Below are the usual options we try having sp2010 in scope&lt;br /&gt;
&lt;br /&gt;
1 Extend CQWP&lt;br /&gt;
2 Use SPSiteDataQuery&lt;br /&gt;
3 Extend Search core results webpart(Fixed query)&lt;br /&gt;
&lt;br /&gt;
#1 and #2 needs to loop thorough all site collections of webapp or hardcode webapp when data is across webapp and much development effort.&lt;br /&gt;
#3 i may consider this option but now that search 2013 in picture i do not want to extend search results webpart as sp2013 replaces scopes with result sources so chance that many things will get deprecated when migrated.&lt;br /&gt;
&lt;br /&gt;
That drives me to use sp2013 search in anyway for my custom webparts.&lt;br /&gt;
Note that these webparts will be deployed to SP2010 server so i cannot use Sharepoint 2013 dlls/API. being said that the only option that i can think of is using any webservices that Sharepoint 2013 search exposes.&lt;br /&gt;
&lt;br /&gt;
You should know that search query webservice is deprecated along with SQL syntax and now SP2013 services are RESTful.&lt;br /&gt;
Find out &lt;a href=&quot;http://technet.microsoft.com/en-in/library/ff607742.aspx&quot; target=&quot;_blank&quot;&gt;here &lt;/a&gt;what are deprecated in SP2013 and be aware while you migrate.&lt;br /&gt;
After all this research i have decided to move ahead with Sharepoint 2013 search REST service.&lt;br /&gt;
Here is all that you need to know on Search REST service&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://blogs.msdn.com/b/nadeemis/archive/2012/08/24/sharepoint-2013-search-rest-api.aspx&quot;&gt;http://blogs.msdn.com/b/nadeemis/archive/2012/08/24/sharepoint-2013-search-rest-api.aspx&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://msdn.microsoft.com/en-in/library/fp142385.aspx&quot;&gt;http://msdn.microsoft.com/en-in/library/fp142385.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
One last thing is, search REST does not support OData like other rest services(for lists) in SP2013.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; height=&quot;16&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/8444954187538974953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2013/04/sharepoint-2013-search-rest-service-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/8444954187538974953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/8444954187538974953'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2013/04/sharepoint-2013-search-rest-service-and.html' title='Sharepoint 2013 Search REST service and 2010 deprecated'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-5656389437376015235</id><published>2013-03-10T10:25:00.000-07:00</published><updated>2013-03-10T10:27:36.528-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="winforms"/><title type='text'>Control accessed from a thread other than the thread it was created on</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; height=&quot;16&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
BackgroundWorker and some basics around it.&lt;br /&gt;
&lt;br /&gt;
Never thought i would get a chance to work with win forms. Here i am dancing with it.&lt;br /&gt;
I think its time for me to learn some basics about it.&lt;br /&gt;
I developed the app but its hanging while its working i.e executing the lengthy code.&lt;br /&gt;
I would not worry about it much but then the running information that i&#39;m displaying on the form is not getting displayed due to it.&lt;br /&gt;
&lt;br /&gt;
So what&#39;s the solution? &lt;b&gt;BackgroundWorker&lt;/b&gt;&lt;br /&gt;
Yes, App gets hung as the entire operation was running in the same thread of the process.&lt;br /&gt;
so to avoid it a new thread must be spawn where the operations should run&amp;nbsp;asynchronously.&lt;br /&gt;
Instead of cracking my head on spawning threads and handling them, .Net framework already&lt;br /&gt;
have a Class BackgroundWorker that supports this with all necessary events.&lt;br /&gt;
&lt;br /&gt;
Here it is how i used it&lt;br /&gt;
BackgroundWorker bgWorker = new BackgroundWorker();&lt;br /&gt;
bgWorker.WorkerSupportsCancellation = true;&lt;br /&gt;
bgWorker.DoWork += DoWork;&lt;br /&gt;
// run the worker in async mode to avoid the app running smoothly without hanging&lt;br /&gt;
bgWorker.RunWorkerAsync();&lt;br /&gt;
&lt;br /&gt;
public void DoWork(object sender,DoWorkEventArgs args)&lt;br /&gt;
{&lt;br /&gt;
//time consuming operations go here&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
That makes the app run cool but brought another issue&lt;br /&gt;
&lt;b&gt;Cross-thread operation not valid: Control &#39;control1&#39; accessed from a thread other than the thread it was created on&lt;/b&gt;&lt;br /&gt;
So i have to use the below delegate methods to access the objects that are created in a&lt;br /&gt;
thread different from current.Be aware that delegate can set only properties of the object&lt;br /&gt;
but cannot call any methods on it.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;delegate void SetControlValueCallback(Control oControl, string propName, object propValue);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private void SetControlPropertyValue(Control oControl, string propName, object propValue)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (oControl.InvokeRequired)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SetControlValueCallback d = new SetControlValueCallback(SetControlPropertyValue);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; oControl.Invoke(d, new object[] { oControl, propName, propValue });&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Type t = oControl.GetType();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PropertyInfo[] props = t.GetProperties();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (PropertyInfo p in props)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (p.Name.ToUpper() == propName.ToUpper())&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // append the data&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //string existingValue = p.GetValue(oControl, propValue).ToString(); ;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p.SetValue(oControl, propValue, null);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; height=&quot;16&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/5656389437376015235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2013/03/control-accessed-from-thread-other-than.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/5656389437376015235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/5656389437376015235'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2013/03/control-accessed-from-thread-other-than.html' title='Control accessed from a thread other than the thread it was created on'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-1084637606797513256</id><published>2013-03-05T03:40:00.001-08:00</published><updated>2013-04-07T01:15:21.129-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="search"/><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint 2013"/><title type='text'>SharePoint 2013 Search  Features &amp; Administration</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; height=&quot;16&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;br /&gt;
SharePoint 2013&amp;nbsp;Search&amp;nbsp;Preview&lt;br /&gt;
You must be already aware that Search in SharePoint 2013 is no more as a different license similar to FAST for SP2010. FAST is now integrated in SP2013.&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
Below is the screen that shows what can be done as part of search administration.&lt;br /&gt;
Note that all these screens are taken from Sharepoint Online(Office 365). UI might differ but the features should be same in 2013 server.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgo0PXYUtAngRjJU56j_pPHNICAhZELksbimiR9EjO2ccjmiQyYvPPbWsi2lSkjr36nbdY5JnePmMSBUEvXx9ZAyZ3hWueI7OIsKTmVw5DgYC7e3QhlnLa2AV1xpac7nmJPcyCmf0FC2smi/s1600/SP2013SearchAdmin.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;392&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgo0PXYUtAngRjJU56j_pPHNICAhZELksbimiR9EjO2ccjmiQyYvPPbWsi2lSkjr36nbdY5JnePmMSBUEvXx9ZAyZ3hWueI7OIsKTmVw5DgYC7e3QhlnLa2AV1xpac7nmJPcyCmf0FC2smi/s640/SP2013SearchAdmin.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;strong&gt;Manage Schema - &lt;/strong&gt;Allows you to configure/map crawled/managed properties. Now each&amp;nbsp;managed property got&amp;nbsp;setttings that include if&amp;nbsp;it can be searchable/queryable/refinable/sortable&amp;nbsp;on search results page without any additional xslt or xml configuration in search webparts.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWaNJMb_ej1m_gOIyDA8bfwlxWBIitY655Yt2viEH88g-LY2hWveV7DSHwbxjTwmaR7hkW35UtvvObSLbCpF72sZtZu1IYLYVCWnIqNjUKY6udIOIrUlphL7x_4Wt2dQgt8OlMWmmUTSWx/s1600/SearchSchema.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;386&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWaNJMb_ej1m_gOIyDA8bfwlxWBIitY655Yt2viEH88g-LY2hWveV7DSHwbxjTwmaR7hkW35UtvvObSLbCpF72sZtZu1IYLYVCWnIqNjUKY6udIOIrUlphL7x_4Wt2dQgt8OlMWmmUTSWx/s640/SearchSchema.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;strong&gt;Manage Authoritative Pages -&lt;/strong&gt; Here specific content from an url/site&amp;nbsp;can be ranked top over the other urls/sites. Both promotion and demotion of ranking can be done by just providing the urls. &lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicXy6Xz9zm0ScIBBqL5PzQmAdWDq4N7f8k0l4y9OD1TKimF7prKDiqwOlLpUS6pIoHnkkZ3H0QzYaBSNJ-hDidqJjRTEMyVA-jxX-yXWjw85Fk8zLVn_eQdbux6MaYFp2w4TvFZdEFYBFg/s1600/AuthoritativePages.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;571&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicXy6Xz9zm0ScIBBqL5PzQmAdWDq4N7f8k0l4y9OD1TKimF7prKDiqwOlLpUS6pIoHnkkZ3H0QzYaBSNJ-hDidqJjRTEMyVA-jxX-yXWjw85Fk8zLVn_eQdbux6MaYFp2w4TvFZdEFYBFg/s640/AuthoritativePages.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;strong&gt;Query Suggestion Settings -&lt;/strong&gt; This was already there which is similar to google auto suggestions. As in when the user types a keyword or text in search text box, suggestions gets populated. &lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Note that for these suggestions to work, atleast 5-6 times a content link should have been accessed or clicked that result in a search. Now you have an option in UI to export or import the suggestions.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZLhfJ8jW72W0O3nmj7a2IJZoC7rkPJ3j-IrOCSB-u1FrPNGXNpmhlH8qCE4mB78HbRGCpt8bGfkP6gsE7SSa-B3sCIxAj0V1vGfk3IqgHdf81W8_JplqOgG1GXfKvH1983AM1ehjjjhV2/s1600/QuerySuggestionSettings.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;384&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZLhfJ8jW72W0O3nmj7a2IJZoC7rkPJ3j-IrOCSB-u1FrPNGXNpmhlH8qCE4mB78HbRGCpt8bGfkP6gsE7SSa-B3sCIxAj0V1vGfk3IqgHdf81W8_JplqOgG1GXfKvH1983AM1ehjjjhV2/s640/QuerySuggestionSettings.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;strong&gt;Manage Result Resources&lt;/strong&gt;﻿ - SP2013 replaced search scopes with result sources that includes content source configuration, federated location selection and any query transformation settings using&amp;nbsp;a built in query builder(no more caml query builder).&amp;nbsp;SP2013 boosted its search and&amp;nbsp;is all geared up with webparts driven by search. CQWP is now replaced by Content search webpart that can have a query build on top these sources to fetch results or data.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVOiOwJCxeLWOXFoXb3Yd6q1le3WqJuHLoHUCgDCtoS8gaEkXmPgC6RT5RemzmZ-T753aS2v4ybeUJsEc6BShXLyss4TPoqX6g-ewofh-ibQY9fqGiTKOrtPrLsJAnK-I_AelMJh7QBKRH/s1600/ManageResultSources.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;431&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVOiOwJCxeLWOXFoXb3Yd6q1le3WqJuHLoHUCgDCtoS8gaEkXmPgC6RT5RemzmZ-T753aS2v4ybeUJsEc6BShXLyss4TPoqX6g-ewofh-ibQY9fqGiTKOrtPrLsJAnK-I_AelMJh7QBKRH/s640/ManageResultSources.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;strong&gt;Manage Query Rules -&lt;/strong&gt; Rules is also a&amp;nbsp;new name with few settings carried from SP2010 and much more settings. Admins can configure rules on searches and if it matches a corresponding action is taken(like promoting results or ranking). This is where Best bets will be configured as well.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9ECgvsnwx_IvG_YHv8GsVq-cK4ZEimvGcRpwRWwceqqlLzhXNXqy72NmGnCzZc9sbhsaMZpryr1mi1uern7vvSvoP-P94ou9KT1W676WNk3Cetq-eOBzTJTLoOAYGu9zb4uxZH6h1osvN/s1600/ManageQueryRules.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9ECgvsnwx_IvG_YHv8GsVq-cK4ZEimvGcRpwRWwceqqlLzhXNXqy72NmGnCzZc9sbhsaMZpryr1mi1uern7vvSvoP-P94ou9KT1W676WNk3Cetq-eOBzTJTLoOAYGu9zb4uxZH6h1osvN/s640/ManageQueryRules.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;strong&gt;Manage Query Client Types -&lt;/strong&gt; This feature allows to prioritize the execution of search query based on the type of application the request has come from. Allows to manage query throttling based on the priorities configured here. By default this option is OFF. &lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7_NQKkvy6iGkxS7co5BXlESSRb_asD3IuYZKlYnjcdgzkAmXkNDFHDW-mDkRNmzN_M3PicTCcGnMP1iPazrE5ZykUScoNkzQVebVOCDn9d2ImewZpXTfg60yc8ENl0cxOvU-daijpraZt/s1600/ManageQueryClientTypes.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;401&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7_NQKkvy6iGkxS7co5BXlESSRb_asD3IuYZKlYnjcdgzkAmXkNDFHDW-mDkRNmzN_M3PicTCcGnMP1iPazrE5ZykUScoNkzQVebVOCDn9d2ImewZpXTfg60yc8ENl0cxOvU-daijpraZt/s640/ManageQueryClientTypes.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;strong&gt;Usage Reports -&lt;/strong&gt; Here admin can see the pre configured reports on search queries&amp;nbsp;that will pull the data in excel format. SP2013 now do not have an analytics service application but integrated and improved as part of search component. Analytics are two types in SP2013&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;Search Analytics - Analyzes the content on index server to improve the search relavance and for the reports&lt;/li&gt;
&lt;li&gt;&amp;nbsp;Usage Analytis - Analyzes user actions/events&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdqVtMUTH7fx7AaKJiCpK_SKK25Pk8BMi3E4QJZaKsOwM24xHQ4_Io3ZjxAS2HPckj8U8BZUiWzPmlhCEPFfOTlnaslnKTuVEqwH4lkQnHHKY0ObPMj-F4nLlDSgXNGJDm9vBbqSFcXTFK/s1600/UsageReports.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;481&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdqVtMUTH7fx7AaKJiCpK_SKK25Pk8BMi3E4QJZaKsOwM24xHQ4_Io3ZjxAS2HPckj8U8BZUiWzPmlhCEPFfOTlnaslnKTuVEqwH4lkQnHHKY0ObPMj-F4nLlDSgXNGJDm9vBbqSFcXTFK/s640/UsageReports.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; height=&quot;16&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/1084637606797513256/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2013/03/sharepoint-2013-you-must-be-already.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/1084637606797513256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/1084637606797513256'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2013/03/sharepoint-2013-you-must-be-already.html' title='SharePoint 2013 Search  Features &amp; Administration'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgo0PXYUtAngRjJU56j_pPHNICAhZELksbimiR9EjO2ccjmiQyYvPPbWsi2lSkjr36nbdY5JnePmMSBUEvXx9ZAyZ3hWueI7OIsKTmVw5DgYC7e3QhlnLa2AV1xpac7nmJPcyCmf0FC2smi/s72-c/SP2013SearchAdmin.JPG" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-287106177519391903</id><published>2013-01-19T23:35:00.000-08:00</published><updated>2013-01-19T23:41:09.613-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iframe"/><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><title type='text'>Set width of div part of iframe</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; height=&quot;16&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;How to set the width(in percentage) of the element that is part of iframe?&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;my first attempt :&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;$(document).ready(function()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;$(&quot;#divid&quot;).css(&quot;width&quot;,&quot;50%&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;});&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Above script did not work as the script gets triggered immediately after document&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;loads but before iframe renders&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;So i tried the below, which did not work for me(in IE 8)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;$(&#39;iframe&#39;).ready()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;finally i could run the script on load of iframe with below code&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;though it failed to set the width property as it was not able to find the div&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;$(&#39;iframe&#39;).load(function()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp; $(&quot;#divid&quot;).css(&quot;width&quot;,&quot;50%&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;To access the contents of the iframe use&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;$(&quot;iframe&quot;).contents().find(&quot;#divid&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Geat!! it could get the div element but could not set the css property as i&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;was trying to override the css property that already has important tag set&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;So, how do i set my css property as important through jquery?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Here you go...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;$(&quot;iframe&quot;).load(function () {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(&quot;iframe&quot;).contents().find(&quot;#divid&quot;).attr(&quot;style&quot;, &quot;width:50%!important&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Helvetica, Arial, sans-serif; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Calibri,sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;voila!!So much learnt today :)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; height=&quot;16&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/287106177519391903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2013/01/set-width-of-div-part-of-iframe.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/287106177519391903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/287106177519391903'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2013/01/set-width-of-div-part-of-iframe.html' title='Set width of div part of iframe'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-9217987726440001631</id><published>2012-10-03T07:12:00.000-07:00</published><updated>2012-10-03T07:12:37.605-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="VS2010"/><title type='text'>SharePoint server is not installed on this computer</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; height=&quot;16&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Are you victim of this error? then, you must be trying to use&amp;nbsp;SharePoint&amp;nbsp;2010 templates in visual studio 2010 &amp;nbsp;on the system that does not have Sharepoint installed.&lt;br /&gt;
&lt;br /&gt;
So how to make it work with out installing the&amp;nbsp;SharePoint&amp;nbsp;server on local machine? After googling around, the hack that i found is to export the registry from&amp;nbsp;SharePoint&amp;nbsp;2010 machine and import it to the machine where you are running visual studio.&lt;br /&gt;
Follow the below detailed steps,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Run regedit in command prompt on Sharepoint server&lt;/li&gt;
&lt;li&gt;Navigate to the path [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0]&lt;/li&gt;
&lt;li&gt;Copy the whole 14 hive registry by exporting it.(File-&amp;gt;Export)&lt;/li&gt;
&lt;li&gt;Open the registry in local machine where you are trying to develop sharepoint solutions using VS2010&lt;/li&gt;
&lt;li&gt;Export the copied registry (File-&amp;gt;Import)&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
The last step is to copy the&amp;nbsp;SharePoint&amp;nbsp;dlls at&amp;nbsp;C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI from sharepoint server to local machine.&lt;/div&gt;
&lt;div&gt;
Copy the necessary sharepoint dlls to GAC or use Gacutil to do.&lt;/div&gt;
&lt;div&gt;
Now after restarting VS you must be able to create projects using sharepoint templates.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
This way i could&amp;nbsp;successfully&amp;nbsp;develop sharepoint solution using &amp;nbsp;VS2010 when sharepoint is on a different system(in &amp;nbsp;my case sharepoint online) though debugging is not possible.&lt;/div&gt;
&lt;br /&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; height=&quot;16&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/9217987726440001631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2012/10/sharepoint-server-is-not-installed-on.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/9217987726440001631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/9217987726440001631'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2012/10/sharepoint-server-is-not-installed-on.html' title='SharePoint server is not installed on this computer'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-8639781976531091514</id><published>2012-09-25T09:55:00.001-07:00</published><updated>2012-09-25T09:55:21.072-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><title type='text'>Query XML using LINQ</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; height=&quot;16&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
I have a scenario, to calculate the size of the documents in library.&lt;br /&gt;Now after i read the library using web service in to xml (soap) i do not want to iterate or loop&lt;br /&gt;all items to read the value in the column,file size. I was wondering if i can apply a aggregate function(sum)&lt;br /&gt;like we have in SQL. Here is how i did with XDocument by applying LINQ on XML&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;i&gt;XDocument xDoc = XDocument.Load(&quot;test.xml&quot;);&lt;br /&gt;// Incase if source is a XmlNode&lt;br /&gt;//Xdocument.Parse(XmlNode.OuterXml);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;i&gt;//namespace is always necesary for xdoc to identify the elements&lt;br /&gt;XNamespace z = &quot;#RowsetSchema&quot;;&lt;br /&gt;var size = (from item in xDoc.Descendants(z + &quot;row&quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select Convert.ToDouble(item.Attribute(&quot;ows_File_x0020_Size&quot;).Value.Substring(item.Attribute(&quot;ows_File_x0020_Size&quot;).Value.IndexOf(&#39;#&#39;) + 1))).Sum();&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;XDocument.Descendants(&quot;z:row&quot;) will always throw exception that &lt;b&gt;semicolon is not allowed&lt;/b&gt;.&lt;br /&gt;Thats one more reason why namespace should be passed.&lt;/div&gt;
&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; height=&quot;16&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/8639781976531091514/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2012/09/query-xml-using-linq.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/8639781976531091514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/8639781976531091514'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2012/09/query-xml-using-linq.html' title='Query XML using LINQ'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-8919816737059712933</id><published>2012-09-09T07:21:00.000-07:00</published><updated>2012-09-09T07:21:33.693-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="search"/><title type='text'>component version is not compatible with the search database</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; height=&quot;16&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
One of the reason for causing the below error is due to missing database upgrade in the server for search service application.&lt;br /&gt;
&lt;br /&gt;
ERROR :The synchronization operation of the search component: 8bce98fb-8409-491d-877e-143590c9f055 associated to the search application: Search Service Application on server: &lt;servername&gt;has failed. The component version is not compatible with the search database: Search_Service_Application_CrawlStoreDB_4925b8b4b5574940ba8389bffd59423f on server: &lt;servername&gt;. The possible cause for this failure is The database schema version is less than the minimum backwards compatibility schema version that is supported for this component. To resolve this problem upgrade this database..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to update the SharePoint databases, you must manually run the PSconfig utility. To run the utility:&lt;br /&gt;
Check if the server needs update with the following command in the sharepoint powershell admin,&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;(get-spserver $env:computername).NeedsUpgrade &lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
If it returns TRUE, then follow the steps below&lt;br /&gt;
&lt;br /&gt;
1.Open an Administrative command prompt. &lt;br /&gt;
&lt;br /&gt;
2.Change directory to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN &lt;br /&gt;
&lt;br /&gt;
3.Run PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures&lt;br /&gt;
&lt;br /&gt;
This will take&amp;nbsp;couple of minutes to finish.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; height=&quot;16&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/servername&gt;&lt;/servername&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/8919816737059712933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2012/09/component-version-is-not-compatible.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/8919816737059712933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/8919816737059712933'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2012/09/component-version-is-not-compatible.html' title='component version is not compatible with the search database'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-5660048485369838296</id><published>2012-08-18T04:44:00.004-07:00</published><updated>2012-08-18T04:50:24.970-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Best Practice"/><category scheme="http://www.blogger.com/atom/ns#" term="Dispose"/><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint 2010"/><title type='text'>Dispose RootWeb,ParentWeb,limitedwebpartmanger?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; height=&quot;16&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
we all know that disposing SPSite/SPWeb objects is the best practice that will avoid any memory leaks. If you know the first point then you should also know when to dipose?&lt;br /&gt;
&lt;br /&gt;
Objects accessed from the SPContext or properties(feature) do not need to be explicitly disposed but where as instantiated as below need to be.&lt;br /&gt;
&lt;br /&gt;
SPSite site = new SPSite(&quot;http://abc.com&quot;);&lt;br /&gt;
&lt;br /&gt;
So just wrap the above line of code with using that will automatically dispose the SPSite object when its out of scope.&lt;br /&gt;
&lt;br /&gt;
Using(SPSite site = new SPSite(&quot;http://abc.com&quot;))&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; .....&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
There are some very special cases where we get confused, which I gonna cover here,&lt;br /&gt;
&lt;br /&gt;
SPWeb web = site.RootWeb/ParentWeb&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; or&lt;br /&gt;
SPWeb web =&amp;nbsp;SPcontext.Current.Site.RootWeb/ParentWeb&lt;br /&gt;
&lt;br /&gt;
Should the web object be disposed in the above scenario?Certainly NOT, as these objects are disposed implicitly when site object is disposed i.e wrapped &quot;using&quot; when it is instantiated and in other case by sharepoint &amp;nbsp;when it(spsite) is from SPContext.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That being said how about SPWeb from SPContext.Current.Site.OpenWeb() ?&lt;br /&gt;
From the reflector it can be seen that a new instance of SPWeb is created when OpenWeb is called, irrespective of the way SPSite is instantiated.So in the code SPWeb should be disposed always&amp;nbsp;explicitly.&lt;br /&gt;
&lt;br /&gt;
Also, SPLimitedWebPartManager implements IDisposable which means it should be disposed when ever used.&lt;br /&gt;
we always follow the below practice when it comes to&amp;nbsp;SPLimitedWebPartManager&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;color: blue; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;span lang=&quot;EN&quot; style=&quot;font-size: 8pt;&quot;&gt;using&lt;/span&gt;&lt;span lang=&quot;EN&quot; style=&quot;color: black; font-size: 8pt;&quot;&gt;&amp;nbsp;(SPWeb web = site.OpenWeb())&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;color: blue; font-family: Consolas; font-size: 8pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;color: blue; font-family: Consolas; font-size: 8pt;&quot;&gt;using&lt;/span&gt;&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;(SPLimitedWebPartManager webPartManager = web.GetLimitedWebPartManager(url, scope))&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;webPartManager.AddWebPart(mstrReport, entry.Key.ToString(), 0);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; webPartManager.SaveChanges(mstrReport);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
I had a doubt if SPlimiedWebPartManager should be disposed when it is read from SPContext as below,&lt;br /&gt;
&lt;br /&gt;
SPContext.Current.Web.GetLimitedWebPartManger(..)&lt;br /&gt;
&lt;br /&gt;
So quickly i opened the reflector to see what is happening in the background, then i realized that it should be disposed and along with it the property, web.&lt;br /&gt;
Here is the snippet from reflector.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&lt;span style=&quot;color: #1000a0;&quot;&gt;internal&lt;/span&gt; &lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.WebPartPages.SPLimitedWebPartManager&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager

CTRL+Click to open in new tab.&quot;&gt;SPLimitedWebPartManager&lt;/a&gt; &lt;b&gt;&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.SPWeb%2fGetLimitedWebPartManagerInternal(System.Uri%2cInt32%2cMicrosoft.SharePoint.WebPartPages.PageView%2cBoolean%2cBoolean)%3aMicrosoft.SharePoint.WebPartPages.SPLimitedWebPartManager&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot;&gt;GetLimitedWebPartManagerInternal&lt;/a&gt;&lt;/b&gt;(&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fSystem%3a2.0.0.0%3ab77a5c561934e089%2fSystem.Uri&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;System.Uri

CTRL+Click to open in new tab.&quot;&gt;Uri&lt;/a&gt; pageUrl, &lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fmscorlib%3a2.0.0.0%3ab77a5c561934e089%2fSystem.Int32&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;System.Int32

CTRL+Click to open in new tab.&quot;&gt;int&lt;/a&gt; pageVersion, &lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.WebPartPages.PageView&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;Microsoft.SharePoint.WebPartPages.PageView

CTRL+Click to open in new tab.&quot;&gt;PageView&lt;/a&gt; requestedView, &lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fmscorlib%3a2.0.0.0%3ab77a5c561934e089%2fSystem.Boolean&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;System.Boolean

CTRL+Click to open in new tab.&quot;&gt;bool&lt;/a&gt; forRender, &lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fmscorlib%3a2.0.0.0%3ab77a5c561934e089%2fSystem.Boolean&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;System.Boolean

CTRL+Click to open in new tab.&quot;&gt;bool&lt;/a&gt; includeHidden)&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;{&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #1000a0;&quot;&gt;if&lt;/span&gt; (&lt;span style=&quot;color: maroon;&quot;&gt;null&lt;/span&gt; == pageUrl)&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #1000a0;&quot;&gt;throw&lt;/span&gt; &lt;span style=&quot;color: #1000a0;&quot;&gt;new&lt;/span&gt; &lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fmscorlib%3a2.0.0.0%3ab77a5c561934e089%2fSystem.ArgumentNullException%2f.ctor(String)&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;System.ArgumentNullException.ArgumentNullException(string);

CTRL+Click to open in new tab.&quot;&gt;ArgumentNullException&lt;/a&gt;(&lt;span style=&quot;color: maroon;&quot;&gt;&quot;pageUrl&quot;&lt;/span&gt;);&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #1000a0;&quot;&gt;if&lt;/span&gt; (!pageUrl.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fSystem%3a4.0.0.0%3ab77a5c561934e089%2fSystem.Uri%2fproperty%3aIsAbsoluteUri%3aBoolean&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;bool System.Uri.IsAbsoluteUri { ... }

CTRL+Click to open in new tab.&quot;&gt;IsAbsoluteUri&lt;/a&gt;)&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #1000a0;&quot;&gt;throw&lt;/span&gt; &lt;span style=&quot;color: #1000a0;&quot;&gt;new&lt;/span&gt; &lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fmscorlib%3a2.0.0.0%3ab77a5c561934e089%2fSystem.ArgumentException%2f.ctor(String%2cString)&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;System.ArgumentException.ArgumentException(string, string);

CTRL+Click to open in new tab.&quot;&gt;ArgumentException&lt;/a&gt;(&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.WebPartPages.WebPartPageResource&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;Microsoft.SharePoint.WebPartPages.WebPartPageResource

CTRL+Click to open in new tab.&quot;&gt;WebPartPageResource&lt;/a&gt;.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.WebPartPages.WebPartPageResource%2fGetString(String)%3aString&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;string Microsoft.SharePoint.WebPartPages.WebPartPageResource.GetString(string name);

CTRL+Click to open in new tab.&quot;&gt;GetString&lt;/a&gt;(&lt;span style=&quot;color: maroon;&quot;&gt;&quot;AbsoluteUriRequired&quot;&lt;/span&gt;), &lt;span style=&quot;color: maroon;&quot;&gt;&quot;pageUrl&quot;&lt;/span&gt;);&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #1000a0;&quot;&gt;this&lt;/span&gt;.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.SPWeb%2fEnsureAspx(String)&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;void Microsoft.SharePoint.SPWeb.EnsureAspx(string relativeUrl);

CTRL+Click to open in new tab.&quot;&gt;EnsureAspx&lt;/a&gt;(&lt;span style=&quot;color: #1000a0;&quot;&gt;this&lt;/span&gt;.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.SPWeb%2fGetWebRelativeUrlFromUrl(String%2cBoolean%2cBoolean)%3aString&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;string Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(string strUrl, bool includeQueryString, bool canonicalizeUrl);

CTRL+Click to open in new tab.&quot;&gt;GetWebRelativeUrlFromUrl&lt;/a&gt;(pageUrl.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fmscorlib%3a2.0.0.0%3ab77a5c561934e089%2fSystem.Object%2fToString()%3aString&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;string System.Object.ToString();

CTRL+Click to open in new tab.&quot;&gt;ToString&lt;/a&gt;(), &lt;span style=&quot;color: maroon;&quot;&gt;false&lt;/span&gt;, &lt;span style=&quot;color: maroon;&quot;&gt;true&lt;/span&gt;));&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.SPWeb&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;Microsoft.SharePoint.SPWeb

CTRL+Click to open in new tab.&quot;&gt;SPWeb&lt;/a&gt; &lt;b&gt;web&lt;/b&gt; = &lt;span style=&quot;color: #1000a0;&quot;&gt;this&lt;/span&gt;.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.SPWeb%2fproperty%3aSite%3aMicrosoft.SharePoint.SPSite&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;SPSite Microsoft.SharePoint.SPWeb.Site { ... }

CTRL+Click to open in new tab.&quot;&gt;Site&lt;/a&gt;.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.SPSite%2fOpenWeb()%3aMicrosoft.SharePoint.SPWeb&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;SPWeb Microsoft.SharePoint.SPSite.OpenWeb();

CTRL+Click to open in new tab.&quot;&gt;OpenWeb&lt;/a&gt;(); // THIS  WEB IS NEVER DISPOSED HERE&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; web.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.SPWeb%2fproperty%3aIsOwnedByWebPartManager%3aBoolean&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;bool Microsoft.SharePoint.SPWeb.IsOwnedByWebPartManager { ... }

CTRL+Click to open in new tab.&quot;&gt;IsOwnedByWebPartManager&lt;/a&gt; = &lt;span style=&quot;color: maroon;&quot;&gt;true&lt;/span&gt;;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.WebPartPages.SPWebPartManager&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;Microsoft.SharePoint.WebPartPages.SPWebPartManager

CTRL+Click to open in new tab.&quot;&gt;SPWebPartManager&lt;/a&gt; &lt;b&gt;manager&lt;/b&gt; = &lt;span style=&quot;color: maroon;&quot;&gt;null&lt;/span&gt;;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #1000a0;&quot;&gt;try&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fmscorlib%3a2.0.0.0%3ab77a5c561934e089%2fSystem.Int64&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;System.Int64

CTRL+Click to open in new tab.&quot;&gt;long&lt;/a&gt; &lt;b&gt;num&lt;/b&gt;;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #1000a0;&quot;&gt;if&lt;/span&gt; (&lt;span style=&quot;color: #1000a0;&quot;&gt;this&lt;/span&gt;.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.SPWeb%2fproperty%3aAllowUnsafeUpdates%3aBoolean&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;bool Microsoft.SharePoint.SPWeb.AllowUnsafeUpdates { ... }

CTRL+Click to open in new tab.&quot;&gt;AllowUnsafeUpdates&lt;/a&gt;)&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; web.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.SPWeb%2fproperty%3aAllowUnsafeUpdates%3aBoolean&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;bool Microsoft.SharePoint.SPWeb.AllowUnsafeUpdates { ... }

CTRL+Click to open in new tab.&quot;&gt;AllowUnsafeUpdates&lt;/a&gt; = &lt;span style=&quot;color: #1000a0;&quot;&gt;this&lt;/span&gt;.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.SPWeb%2fproperty%3aAllowUnsafeUpdates%3aBoolean&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;bool Microsoft.SharePoint.SPWeb.AllowUnsafeUpdates { ... }

CTRL+Click to open in new tab.&quot;&gt;AllowUnsafeUpdates&lt;/a&gt;;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; manager = web.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.SPWeb%2fGetWebPartManagerInternal(System.Uri%2cInt32%2cMicrosoft.SharePoint.WebPartPages.PageView%2cBoolean%2cBoolean%2cInt64%26)%3aMicrosoft.SharePoint.WebPartPages.SPWebPartManager&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;SPWebPartManager Microsoft.SharePoint.SPWeb.GetWebPartManagerInternal(Uri pageUrl, int pageVersion, PageView requestedView, bool forRender, bool includeHidden, out long bytes);

CTRL+Click to open in new tab.&quot;&gt;GetWebPartManagerInternal&lt;/a&gt;(pageUrl, pageVersion, requestedView, forRender, includeHidden, &lt;span style=&quot;color: #1000a0;&quot;&gt;out&lt;/span&gt; num);&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #1000a0;&quot;&gt;catch&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; web.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.SPWeb%2fDispose()&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;void Microsoft.SharePoint.SPWeb.Dispose();

CTRL+Click to open in new tab.&quot;&gt;Dispose&lt;/a&gt;();&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #1000a0;&quot;&gt;throw&lt;/span&gt;;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #1000a0;&quot;&gt;if&lt;/span&gt; (manager != &lt;span style=&quot;color: maroon;&quot;&gt;null&lt;/span&gt;)&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #1000a0;&quot;&gt;return&lt;/span&gt; manager.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.WebPartPages.SPWebPartManager%2fproperty%3aLimitedWebPartManager%3aMicrosoft.SharePoint.WebPartPages.SPLimitedWebPartManager&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;SPLimitedWebPartManager Microsoft.SharePoint.WebPartPages.SPWebPartManager.LimitedWebPartManager { ... }

CTRL+Click to open in new tab.&quot;&gt;LimitedWebPartManager&lt;/a&gt;;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #1000a0;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;null&lt;/span&gt;;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;}&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
The above web instance created by sharepoint in the method is not disposed. So i checked if it is doing it in SPLimitedWebPartManager.Dipose()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&lt;span style=&quot;color: #1000a0;&quot;&gt;public&lt;/span&gt; &lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fmscorlib%3a2.0.0.0%3ab77a5c561934e089%2fSystem.Void&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;System.Void

CTRL+Click to open in new tab.&quot;&gt;void&lt;/a&gt; &lt;b&gt;&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.WebPartPages.SPLimitedWebPartManager%2fDispose()&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot;&gt;Dispose&lt;/a&gt;&lt;/b&gt;()&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;{&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #1000a0;&quot;&gt;if&lt;/span&gt; (!&lt;span style=&quot;color: #1000a0;&quot;&gt;this&lt;/span&gt;.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.WebPartPages.SPLimitedWebPartManager%2fm_disposed%3aBoolean&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;bool Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager.m_disposed;

CTRL+Click to open in new tab.&quot;&gt;m_disposed&lt;/a&gt;)&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #1000a0;&quot;&gt;if&lt;/span&gt; (&lt;span style=&quot;color: #1000a0;&quot;&gt;this&lt;/span&gt;.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.WebPartPages.SPLimitedWebPartManager%2fm_manager%3aMicrosoft.SharePoint.WebPartPages.SPWebPartManager&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;SPWebPartManager Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager.m_manager;

CTRL+Click to open in new tab.&quot;&gt;m_manager&lt;/a&gt; != &lt;span style=&quot;color: maroon;&quot;&gt;null&lt;/span&gt;)&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #1000a0;&quot;&gt;this&lt;/span&gt;.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.WebPartPages.SPLimitedWebPartManager%2fm_manager%3aMicrosoft.SharePoint.WebPartPages.SPWebPartManager&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;SPWebPartManager Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager.m_manager;

CTRL+Click to open in new tab.&quot;&gt;m_manager&lt;/a&gt;.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fSystem.Web%3a2.0.0.0%3ab03f5f7f11d50a3a%2fSystem.Web.UI.Control%2fDispose()&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;void System.Web.UI.Control.Dispose();

CTRL+Click to open in new tab.&quot;&gt;Dispose&lt;/a&gt;();&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #1000a0;&quot;&gt;this&lt;/span&gt;.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.WebPartPages.SPLimitedWebPartManager%2fm_webParts%3aMicrosoft.SharePoint.WebPartPages.SPLimitedWebPartCollection&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;SPLimitedWebPartCollection Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager.m_webParts;

CTRL+Click to open in new tab.&quot;&gt;m_webParts&lt;/a&gt; = &lt;span style=&quot;color: maroon;&quot;&gt;null&lt;/span&gt;;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #1000a0;&quot;&gt;this&lt;/span&gt;.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.WebPartPages.SPLimitedWebPartManager%2fm_webPartDefs%3aMicrosoft.SharePoint.WebPartPages.SPWebPartDefinitionCollection&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;SPWebPartDefinitionCollection Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager.m_webPartDefs;

CTRL+Click to open in new tab.&quot;&gt;m_webPartDefs&lt;/a&gt; = &lt;span style=&quot;color: maroon;&quot;&gt;null&lt;/span&gt;;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #1000a0;&quot;&gt;this&lt;/span&gt;.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.WebPartPages.SPLimitedWebPartManager%2fm_manager%3aMicrosoft.SharePoint.WebPartPages.SPWebPartManager&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;SPWebPartManager Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager.m_manager;

CTRL+Click to open in new tab.&quot;&gt;m_manager&lt;/a&gt; = &lt;span style=&quot;color: maroon;&quot;&gt;null&lt;/span&gt;;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #1000a0;&quot;&gt;this&lt;/span&gt;.&lt;a href=&quot;https://email.mindtree.com/owa/redir.aspx?C=9fad75fb58934a119cd328cdf8cafe58&amp;amp;URL=http%3a%2f%2f127.0.0.1%2froeder%2fdotnet%2fDefault.aspx%3fTarget%3dcode%3a%2f%2fMicrosoft.SharePoint%3a14.0.0.0%3a71e9bce111e9429c%2fMicrosoft.SharePoint.WebPartPages.SPLimitedWebPartManager%2fm_disposed%3aBoolean&quot; style=&quot;color: purple;&quot; target=&quot;_blank&quot; title=&quot;bool Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager.m_disposed;

CTRL+Click to open in new tab.&quot;&gt;m_disposed&lt;/a&gt; = &lt;span style=&quot;color: maroon;&quot;&gt;true&lt;/span&gt;;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/pre&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0in 0in 0.0001pt;&quot;&gt;}&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Ah, Its not doing even here which clearly shows that it should be explicitly disposed by the developers.&lt;br /&gt;
So best practice gonna be as below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;color: blue; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;span lang=&quot;EN&quot; style=&quot;font-size: 8pt;&quot;&gt;using&lt;/span&gt;&lt;span lang=&quot;EN&quot; style=&quot;color: black; font-size: 8pt;&quot;&gt;&amp;nbsp;(SPWeb web = site.OpenWeb()) // SPWeb web = SPContext.Current.Web&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;color: blue; font-family: Consolas; font-size: 8pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;color: blue; font-family: Consolas; font-size: 8pt;&quot;&gt;using&lt;/span&gt;&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;(SPLimitedWebPartManager webPartManager = web.GetLimitedWebPartManager(url, scope))&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;try&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;webPartManager.AddWebPart(mstrReport, entry.Key.ToString(), 0);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; webPartManager.SaveChanges(mstrReport);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 11px;&quot;&gt;finally&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// this web is created by sharepoint but not the above one
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 11px;&quot;&gt;webPartManager.Web.Dispose().&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 11px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f4f4f4; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 12pt; margin: 0in 43.5pt 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; height=&quot;16&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/5660048485369838296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2012/08/disposing-rootweblimitedwebpartmangerco.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/5660048485369838296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/5660048485369838296'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2012/08/disposing-rootweblimitedwebpartmangerco.html' title='Dispose RootWeb,ParentWeb,limitedwebpartmanger?'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5264647475061279866.post-4526004449992524683</id><published>2012-08-15T02:53:00.000-07:00</published><updated>2012-08-15T03:33:53.470-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="search"/><category scheme="http://www.blogger.com/atom/ns#" term="upgrade"/><title type='text'>component version is not compatible with search database</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/share_save&quot;&gt;&lt;img alt=&quot;Share/Save/Bookmark&quot; border=&quot;0&quot; height=&quot;16&quot; src=&quot;http://static.addtoany.com/buttons/share_save_171_16.png&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Search service application may not work in your sharepoint environment due to missing database upgrade throwing the below error.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Error:&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12px;&quot;&gt;The synchronization operation of the search component: 8bce98fb-8409-491d-877e-143590c9f055 associated to the search application: Search Service Application on server: VDIGL070404 has failed. The component version is not compatible with the search database: Search_Service_Application_CrawlStoreDB_4925b8b4b5574940ba8389bffd59423f on server: VDIGL070404. The possible cause for this failure is The database schema version is less than the minimum backwards compatibility schema version that is supported for this component. To resolve this problem upgrade this database..&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to update the SharePoint databases, you must manually run the PSconfig utility. To run the utility:&lt;br /&gt;
Check if the server needs update with the following command in the sharepoint powershell admin,&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(get-spserver $env:computername).NeedsUpgrade&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
If it returns TRUE, then follow the steps below&lt;br /&gt;
1. Open an Administrative command prompt.&lt;br /&gt;
2. Change directory to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN&lt;br /&gt;
3. Run PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures&lt;br /&gt;
&lt;br /&gt;
This may take couple of minutes to finish.&lt;br /&gt;
&lt;br /&gt;
http://social.technet.microsoft.com/Forums/en-US/smallbusinessserver/thread/94c5f178-f020-4d0f-ba7c-11c415d0d862/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;
&lt;a class=&quot;a2a_dd&quot; href=&quot;http://www.addtoany.com/subscribe?linkname=&amp;amp;linkurl=http://sharepointcustomization.blogspot.com&quot;&gt;&lt;img alt=&quot;Subscribe&quot; border=&quot;0&quot; height=&quot;16&quot; src=&quot;http://static.addtoany.com/buttons/subscribe_171_16.gif&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointcustomization.blogspot.com/feeds/4526004449992524683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointcustomization.blogspot.com/2012/08/component-version-is-not-compatible.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/4526004449992524683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5264647475061279866/posts/default/4526004449992524683'/><link rel='alternate' type='text/html' href='http://sharepointcustomization.blogspot.com/2012/08/component-version-is-not-compatible.html' title='component version is not compatible with search database'/><author><name>MJ</name><uri>http://www.blogger.com/profile/05806469445215937810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>