<?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-2595504627063847599</id><updated>2024-10-09T16:32:37.158-07:00</updated><category term="Client Object Model"/><category term="SharePoint 2010"/><category term="SharePoint 2013"/><category term="Powershell Script"/><category term="Sharepoint Webparts"/><category term="SandBox Solution"/><category term="SharePoint Migration"/><category term="Visual Studio"/><category term="ASP.NET"/><category term="CAML Query"/><category term="JQuery"/><category term="OAuth"/><category term="Resource File"/><category term="SQL Server 2008"/><category term="Sharepoint Apps"/><category term="Site Template"/><category term="Visual Studio 2012"/><category term="WSP"/><category term="Windows Phone 8"/><title type='text'>SharePointStack</title><subtitle type='html'>All about SharePoint !!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>26</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-8908397757328557559</id><published>2013-05-31T00:23:00.002-07:00</published><updated>2013-05-31T00:23:47.441-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Client Object Model"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2013"/><title type='text'>Get and Set User in Client People Picker using Javascript Client Object Model</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi Readers,&lt;br /&gt;
&lt;br /&gt;
There is a unique scenario where I have to pick user from a Custom People Picker on a Custom Form and then Push that User to a Client People Picker of a List Item using Javascript Client Object Model.&lt;br /&gt;
&lt;br /&gt;
InOrder to achieve this functionality, I first tried to fetch the User from the Custom People Picker on the Form using JQuery,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;var displayName = $(&quot;span.ms-entity-resolved div:first-child&quot;).attr(&quot;displaytext&quot;);&lt;br /&gt;
&lt;br /&gt;
Problem is I do not get the ID of this User normally. So inorder to get the &#39;Id&#39; of this User I searched this User into UserInformation List and then picked the ID of this User.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;function AddItems(displayName) {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var userInfoList = siteObjects.web.get_siteUserInfoList();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var query = new SP.CamlQuery();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query.set_viewXml(&quot;&amp;lt;View&amp;gt;&amp;lt;Query&amp;gt;&amp;lt;Where&amp;gt;&amp;lt;Eq&amp;gt;&amp;lt;FieldRef Name=&#39;Title&#39; /&amp;gt;&amp;lt;Value Type=&#39;Text&#39;&amp;gt;&quot; + displayName + &quot;&amp;lt;/Value&amp;gt;&amp;lt;/Eq&amp;gt;&amp;lt;/Where&amp;gt;&amp;lt;/Query&amp;gt;&amp;lt;/View&amp;gt;&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; siteObjects.UserCollListItem = userInfoList.getItems(query);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; siteObjects.ctx.load(siteObjects.UserCollListItem);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; siteObjects.ctx.executeQueryAsync(Function.createDelegate(null, AddItemsSuccess), Function.createDelegate(null, AddItemsFailure));&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
Then I fetched the List Item ID :&amp;nbsp;&amp;nbsp;userID = currentItem.get_item(&quot;ID&quot;);&lt;br /&gt;
&lt;br /&gt;
Once I got the User ID , I can easily convert this String Type User into User Type using below code :&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; var userFV = new SP.FieldUserValue();&lt;br /&gt;
&amp;nbsp; userFV.set_lookupId(userID);&lt;br /&gt;
&lt;br /&gt;
and can easily set the People Picker List Item now&lt;br /&gt;
&lt;br /&gt;
siteObjects.UserCourselistItem.set_item(&#39;UserName&#39;, userFV);&lt;br /&gt;
&lt;br /&gt;
This is something very unique requirement and can be helpful for many.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/8908397757328557559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2013/05/get-and-set-user-in-client-people.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/8908397757328557559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/8908397757328557559'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2013/05/get-and-set-user-in-client-people.html' title='Get and Set User in Client People Picker using Javascript Client Object Model'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-3362891550517976045</id><published>2013-05-31T00:14:00.000-07:00</published><updated>2013-05-31T00:14:11.042-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Client Object Model"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2013"/><title type='text'>How to Ensure User using JavaScript Client Object Model</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi Readers,&lt;br /&gt;
&lt;br /&gt;
In Server Object Model, web.EnsureUser(loginName) checks whether the user is there in the sharepoint site and if not present , it automatically adds that user into the site.&lt;br /&gt;
&lt;br /&gt;
Similarly using Client Object Model, Microsoft has introduced in same fashion using ECMA Client Object Model we can achieve same functionality.&lt;br /&gt;
&lt;br /&gt;
In microsoft link below you might get to see this approach but if you try to use the same exact way it might not turn fruitful to you.&lt;br /&gt;
&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ff408786(v=office.14).aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/ff408786(v=office.14).aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The reason why it is not working for you is only because you need to &#39;esureuser&#39; on correct &#39;web&#39; context.&lt;br /&gt;
i.e. &amp;nbsp;Try to initiate separate context for this command and then asyc the load objects.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;function EnsureUser(loginName) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var context = SP.ClientContext.get_current();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; siteObjects.currentUser = context.get_web().ensureUser(loginName);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; context.load(siteObjects.currentUser);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; context.executeQueryAsync(Function.createDelegate(null, ensureUserSucess), Function.createDelegate(null, ensureUserFailure));&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
I hope this will be helpful&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/3362891550517976045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2013/05/how-to-ensure-user-using-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/3362891550517976045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/3362891550517976045'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2013/05/how-to-ensure-user-using-javascript.html' title='How to Ensure User using JavaScript Client Object Model'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-6607032348138434452</id><published>2013-05-31T00:07:00.001-07:00</published><updated>2013-05-31T00:14:24.788-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Client Object Model"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2013"/><title type='text'>How to get People Picker entry using JavaScript Client Object Model</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi ,&lt;br /&gt;
&lt;br /&gt;
To fetch People picker value from People Editor Control, JQuery comes to rescue when we talk in terms of Javascript Client Object Model.&lt;br /&gt;
&lt;br /&gt;
Approach 1 :&lt;br /&gt;
var loginName = $(&quot;span.ms-entity-resolved&quot;).attr(&quot;title&quot;); // Returns the Login Name eg. ind\ali.yasir&lt;br /&gt;
var displayName = $(&quot;span.ms-entity-resolved div:first-child&quot;).attr(&quot;displaytext&quot;); Returns Display Name as &#39;Ali Yasir&#39;&lt;br /&gt;
&lt;br /&gt;
Approach 2:&lt;br /&gt;
var loginName = $(&quot;textarea[title=&#39;People Picker&#39;]&quot;).val();&lt;br /&gt;
var displayName = $(&quot;div[title=&#39;People Picker&#39;]&quot;).text();&lt;br /&gt;
&lt;br /&gt;
Hope this will help !!&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/6607032348138434452/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2013/05/how-to-get-people-picker-entry-using.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/6607032348138434452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/6607032348138434452'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2013/05/how-to-get-people-picker-entry-using.html' title='How to get People Picker entry using JavaScript Client Object Model'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-3261208809050671535</id><published>2013-05-26T20:42:00.002-07:00</published><updated>2013-05-26T20:42:18.881-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Client Object Model"/><category scheme="http://www.blogger.com/atom/ns#" term="OAuth"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2013"/><title type='text'>What is OAuth ???</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background: white; line-height: 18.75pt; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Hi All,&lt;br /&gt;
&lt;br /&gt;
I came across a nice post on OAuth so couldn’t stop myself sharing this with
you all.&lt;br /&gt;
&lt;br /&gt;
Here is a long description which needs patience to read &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Wingdings; font-size: 10.0pt;&quot;&gt;J&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt; , Hope
you will like this :&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Before
I go straight to the definition of OAUTH and its elaboration, let’s talk about
few things we already know to set the context. Also, my discussion on OAuth
below is very generic and is not specific to&amp;nbsp;SharePoint&amp;nbsp;now. Once we
are clear of OAuth concepts, we will see on SharePoint
OAuth&amp;nbsp;implementation in another upcoming post.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Apps&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;: We
all know what&amp;nbsp;&lt;a href=&quot;http://extreme-sharepoint.com/2012/10/14/what-are-apps/&quot; target=&quot;_blank&quot; title=&quot;Introduction to Apps : A next generation of software&quot;&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #199eb8; font-family: inherit; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Apps&lt;/span&gt;&lt;/a&gt;&amp;nbsp;are by
now. The word App is so common now a days that I hope to see the nursery books
replacing&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;A for Apple&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp; with&amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;A for Apps&amp;nbsp;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype
 id=&quot;_x0000_t75&quot; coordsize=&quot;21600,21600&quot; o:spt=&quot;75&quot; o:preferrelative=&quot;t&quot;
 path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; filled=&quot;f&quot; stroked=&quot;f&quot;&gt;
 &lt;v:stroke joinstyle=&quot;miter&quot;/&gt;
 &lt;v:formulas&gt;
  &lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;/&gt;
  &lt;v:f eqn=&quot;sum @0 1 0&quot;/&gt;
  &lt;v:f eqn=&quot;sum 0 0 @1&quot;/&gt;
  &lt;v:f eqn=&quot;prod @2 1 2&quot;/&gt;
  &lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot;/&gt;
  &lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot;/&gt;
  &lt;v:f eqn=&quot;sum @0 0 1&quot;/&gt;
  &lt;v:f eqn=&quot;prod @6 1 2&quot;/&gt;
  &lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot;/&gt;
  &lt;v:f eqn=&quot;sum @8 21600 0&quot;/&gt;
  &lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot;/&gt;
  &lt;v:f eqn=&quot;sum @10 21600 0&quot;/&gt;
 &lt;/v:formulas&gt;
 &lt;v:path o:extrusionok=&quot;f&quot; gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot;/&gt;
 &lt;o:lock v:ext=&quot;edit&quot; aspectratio=&quot;t&quot;/&gt;
&lt;/v:shapetype&gt;&lt;v:shape id=&quot;Picture_x0020_3&quot; o:spid=&quot;_x0000_i1025&quot; type=&quot;#_x0000_t75&quot;
 alt=&quot;;-)&quot; style=&#39;width:11.25pt;height:11.25pt&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\ay40727\AppData\Local\Temp\1\msohtmlclip1\01\clip_image001.gif&quot;
  o:href=&quot;cid:image001.gif@01CE58A7.ACCCF8E0&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img alt=&quot;;-)&quot; border=&quot;0&quot; height=&quot;15&quot; src=&quot;file:///C:\Users\ay40727\AppData\Local\Temp\1\msohtmlclip1\01\clip_image001.gif&quot; v:shapes=&quot;Picture_x0020_3&quot; width=&quot;15&quot; /&gt;&lt;!--[endif]--&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;Well,
at least for me&amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;A is for Apps&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Service&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;: We
all understand the idea of Service. A&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Service_(systems_architecture)&quot; target=&quot;_blank&quot; title=&quot;Service (systems architecture)&quot;&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #199eb8; font-family: inherit; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Service&lt;/span&gt;&lt;/a&gt;&amp;nbsp;can be a Web Service or API that is
consumed by client applications&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Service
consumer&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;: Any application that consumes a service. Now tell me
what’s is the most common breed of application now-a-days that consume the
Services?….guess… APPs! Yes, Apps are the most common Service Consumers
now-a-days.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Service
Provider&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;: It’s the one who hosts the service and where the service runs.
The service generally requires authentication so that only trusted consumers
can access the restricted functionality or data offered by the service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; margin-bottom: 12.0pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Now, &amp;nbsp;imagine as a developer, you have developed an
enterprise application that offer users to play
some&amp;nbsp;interesting&amp;nbsp;games on their Mobile devices. For that, you created
a Windows 8 or iOS App (or any App) whose main function is to entertain user
via some puzzle games on his mobile device.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; margin-bottom: 12.0pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Now, a new requirement is to allow the user to share the score
on his Facebook timeline via your App.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: inherit; font-size: 10pt; padding: 0cm;&quot;&gt;&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;How can you make your App share
the&amp;nbsp;information&amp;nbsp;on Facebook on behalf of User?&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; margin-bottom: 12.0pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Isn’t it a most common and necessary requirement now-a-days? It
is.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; margin-bottom: 12.0pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;You will need to access the Service provided by Facebook
(Service Provider) and authenticate your App to post on behalf of the User. An
obvious solution is to ask User to provide his Facebook credentials and store
it securely with you (in your DB\config or whatever). Now, whenever the user
wants to share his score, your App will use the stored credentials and post on
the Facebook wall on behalf of user.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; margin-bottom: 12.0pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;With this (bad) solution, below uncomfortable questions arise
around Security, Maintenance, and User Experience.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;1.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;&amp;nbsp;Security&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;: Is it good to ask User for his Facebook
credentials and store them with your application?&lt;br /&gt;
Although a user may enjoy playing with your App but he will most likely
hesitate to provide you what you are asking. Of course, he cannot simply trust
you!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Maintenance&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;: What if you want to provide the same
functionality with other social platforms like Twitter, LinkedIn or Yammer?
Also, it will be difficult to maintain the user credentials for all the
platforms you have integrated and also keep them in sync in case the User
updates his account at Facebook, Twitter, and Yammer etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;3.&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;User Experience&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;: If your App makes a User feel
insecure about his social accounts, he will simply abandon your App. How can
you prevent it? One solution is that instead of storing credentials, you can
also present a login page when he can supply credentials. However, if your App
connects with many Service Providers (Facebook, Twitter, LinkedIn, Yammer and
many more upcoming) and you keep on asking the credentials every time, the user
will not feel your App is really integrated . Isn’t it?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;The solution to all above questions is&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;OAUTH -&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;an open
protocol to allow secure authorization in a simple and standard method from
web, mobile and desktop applications.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 22.5pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 13.5pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;OAUTH&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Georgia&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 18.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;OAuth&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;is
a standard way for Service providers and Consumers(Apps for example) to handle
authentication. Also, the&amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;OAuth&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;authorization framework
enables a third-party application to obtain limited access to a service hosted
by Service provider.&amp;nbsp;By using&amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;OAuth&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;, you can allow the user to
access a service (Facebook wall for example) stored at one site(Service
Provider) with another application without having to store or manage
credentials at the Application side.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;There are 3 main&amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Actors&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;in an OAuth transaction:
the User, the Service Consumer ( which is generally an APP), and the Service
Provider.&amp;nbsp; This gang of three are often said to form the&amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;OAuth Love Triangle.&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&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/AVvXsEh2SsuI5u58zG4E_bPr3DsA9Rcvmv3T5ryFjKnGAFCXZm7tP97GMIzMfyLMXBW6YZ72RyGv9Q1FL5LTqzgmiybPxn_43xgN3LaS1lt7iUwKeC-bbrhk0f5vxnF2AfMevkyDvfnljXjkrTLR/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;263&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2SsuI5u58zG4E_bPr3DsA9Rcvmv3T5ryFjKnGAFCXZm7tP97GMIzMfyLMXBW6YZ72RyGv9Q1FL5LTqzgmiybPxn_43xgN3LaS1lt7iUwKeC-bbrhk0f5vxnF2AfMevkyDvfnljXjkrTLR/s320/1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; margin-bottom: 12.0pt; text-align: center; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;!--[if gte vml 1]&gt;&lt;v:shape
 id=&quot;Picture_x0020_2&quot; o:spid=&quot;_x0000_i1026&quot; type=&quot;#_x0000_t75&quot; alt=&quot;http://extreme-sharepoint.com/wp-content/uploads/2013/04/OAuth-Lovetriangle.jpg&quot;
 style=&#39;width:379.5pt;height:312pt&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\ay40727\AppData\Local\Temp\1\msohtmlclip1\01\clip_image002.jpg&quot;
  o:href=&quot;cid:image002.jpg@01CE58A7.ACCCF8E0&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; margin-bottom: 12.0pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Now, assuming that your Game APP implemented&amp;nbsp;&lt;a href=&quot;http://developers.facebook.com/docs/concepts/login/login-architecture/&quot; target=&quot;_blank&quot; title=&quot;Facebook Login archtecture&quot;&gt;&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #199eb8; font-family: inherit; mso-border-alt: none windowtext 0cm; padding: 0cm; text-decoration: none; text-underline: none;&quot;&gt;OAuth for FaceBook&lt;/span&gt;&lt;/i&gt;&lt;/a&gt;,
it can initiate&amp;nbsp;authentication&amp;nbsp;using OAuth.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; margin-bottom: 12.0pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Below are the
steps(and&amp;nbsp;the&amp;nbsp;technical&amp;nbsp;conversation) that will occur at high
level &amp;nbsp;among all parties:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;1.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;A&amp;nbsp;user wants Service
Consumer (App) to access his protected resource lying with Service Provider
(Facebook)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;User:&lt;b&gt;&amp;nbsp;&lt;/b&gt;“Hey
App, I enjoyed the game but now I would like you to be able to share my game
score on my&amp;nbsp;Facebook&amp;nbsp;timeline.”&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Game&amp;nbsp;App:&lt;b&gt;&amp;nbsp;&lt;/b&gt;“No
problem! Let me ask for permission from&amp;nbsp;Facebook. ”&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;2.
&amp;nbsp;The service consumer asks for request token from service provider.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Game&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;App:&amp;nbsp;“My user wants me to
post to his wall. Please share a request token.”&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Facebook:&lt;b&gt;&amp;nbsp;&lt;/b&gt;“Your
request is answered. Take the token and&amp;nbsp;associated&amp;nbsp;secret.”&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; margin-bottom: 12.0pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Using the secret, &amp;nbsp;the service provider is able to verify
the future requests by consumer (if its coming from the valid Service
Consumer).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;3.
&amp;nbsp;The user is redirected to the service provider where user approve the
service consumer to act on his behalf.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Game
App: “Hey user, &amp;nbsp;I’m redirecting you to Facebook so you can approve me for
the actions you want.&amp;nbsp;Take the token with you which I got &amp;nbsp;from
Service Provider(Facebook).”&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;User:
“Ok”&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;4.
&amp;nbsp; The user sees a form presented by the Service provider which lists all
the actions the Service Consumer can take on user’s behalf. If user thinks its
all OK, he approves.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Facebook:&lt;b&gt;&amp;nbsp;&lt;/b&gt;“Welcome
User, do you want to authorize the Game App for all the A, B, and C actions?”&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;&amp;nbsp;User:
“Yes, I approve”&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Facebook:
“OK, the request token is approved for the Game App”&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;5.
&amp;nbsp; The service consumer obtains an access token in lieu of request token from
service provider&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Game
App: “Facebook, Can you provide an access token for this approved request
token?”&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Facebook:
“Sure. Take the access token and secret.”&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;6.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;The service consumer preserve
the access token and secret information for later use.This information can be
saved along with user account with service consumer.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Game
App&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;: Hey User, now you can share the score on your wall as long as
you keep me authorized with Facebook.&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;User:
Great! But please note I will revoke your permission on my account with
Facebook anytime I wish.&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;7.
&amp;nbsp; The service consumer accesses the protected resource (of user) on behalf
of user.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;&amp;nbsp;Game
App:&amp;nbsp;“My user wants to share score on his&amp;nbsp;Facebook&amp;nbsp;wall. &amp;nbsp;Here
is the access token for the action”&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;&amp;nbsp;Facebook:&amp;nbsp;“Your
access token looks valid. Your request can be carried on!”&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; margin-bottom: 12.0pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #333333; font-family: inherit; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;OAuth&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;is
adopted by many Service Providers like Facebook, Twitter,Google, Yahoo and all
the Consumers that consume the service from them.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.75pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;The initial version of OAuth is 1.0 which is &amp;nbsp;still being
used by some software companies. The second and latest version , OAuth 2.0, is
created to simplify development while still providing app authentication and
specific authorization flows for web apps, desktop applications, and mobile
devices.&amp;nbsp;For OAuth history and deep details, you can go to&amp;nbsp;&lt;a href=&quot;http://oauth.net/&quot; target=&quot;_blank&quot; title=&quot;OAuth&quot;&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #199eb8; font-family: inherit; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;oauth.net&lt;/span&gt;&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/OAuth&quot; target=&quot;_blank&quot; title=&quot;OAuth&quot;&gt;&lt;span style=&quot;border: none windowtext 1.0pt; color: #199eb8; font-family: inherit; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Wikipedia&lt;/span&gt;&lt;/a&gt;&amp;nbsp;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 12.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/3261208809050671535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2013/05/what-is-oauth.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/3261208809050671535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/3261208809050671535'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2013/05/what-is-oauth.html' title='What is OAuth ???'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2SsuI5u58zG4E_bPr3DsA9Rcvmv3T5ryFjKnGAFCXZm7tP97GMIzMfyLMXBW6YZ72RyGv9Q1FL5LTqzgmiybPxn_43xgN3LaS1lt7iUwKeC-bbrhk0f5vxnF2AfMevkyDvfnljXjkrTLR/s72-c/1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-3168856455644018103</id><published>2013-04-14T21:39:00.002-07:00</published><updated>2013-04-14T21:39:50.320-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2012"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Phone 8"/><title type='text'>Setting Up Environment Configuration of Windows Phone 8 development</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi Readers,&lt;br /&gt;
&lt;br /&gt;
A very common and simple blog today.&lt;br /&gt;
&quot;Setting Up Environment Configuration of Windows Phone 8 development&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-family: Helvetica, arial, verdana; font-size: 15px; line-height: 22px; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Your first task when it comes to Windows Phone development is getting your development environment up and running. It’s a three step process:&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-family: Helvetica, arial, verdana; font-size: 15px; line-height: 22px; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Install Windows 8&lt;/div&gt;
&lt;ul style=&quot;background-color: white; border: 0px; color: #222222; font-family: Helvetica, arial, verdana; font-size: 15px; line-height: 22px; margin: 15px 0px 15px 20px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Windows 8 Pro edition or greater is required&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;background-color: white; border: 0px; color: #222222; font-family: Helvetica, arial, verdana; font-size: 15px; line-height: 22px; margin: 15px 0px 15px 20px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Your machine must have a processor that supports Second Level Address Translation (SLAT)&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: Helvetica, arial, verdana; font-size: 15px; line-height: 22px;&quot;&gt;Install Visual Studio Express 2012 for Windows Phone&lt;/span&gt;&lt;ol style=&quot;background-color: white; border: 0px; color: #222222; font-family: Helvetica, arial, verdana; font-size: 15px; line-height: 22px; margin: 15px 0px 15px 20px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Web Installer – this is a small initial download that will download the necessary components during the installation process. Download at&amp;nbsp;&lt;a href=&quot;http://bit.ly/YSPmrh&quot; style=&quot;border: 0px; color: #20328e; font-family: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;http://bit.ly/YSPmrh&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;ol style=&quot;background-color: white; border: 0px; color: #222222; font-family: Helvetica, arial, verdana; font-size: 15px; line-height: 22px; margin: 15px 0px 15px 20px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Disk Image (iso) – This is the full installer, no additional downloads are required. Download at&lt;a href=&quot;http://bit.ly/Tmb6rX&quot; style=&quot;border: 0px; color: #20328e; font-family: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;http://bit.ly/Tmb6rX&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: Helvetica, arial, verdana; font-size: 15px; line-height: 22px;&quot;&gt;Optional: Join the Windows Phone Dev Center&lt;/span&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-family: Helvetica, arial, verdana; font-size: 15px; line-height: 22px; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; color: #222222; font-family: MuseoSans500, Helvetica, Arial, Verdana, Tahoma, sans-serif; font-size: 23px; line-height: 38px; margin: 0px; outline: 0px; padding: 0px; text-rendering: optimizelegibility; vertical-align: baseline;&quot;&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
You can’t create Windows Phone apps on anything but a 64 bit version of Windows 8. There are two additional requirements for running the Windows Phone 8 emulator:&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
What this means is that you can’t run a Windows Phone 8 development inside of a virtual machine. This is due to the Hyper-V technology used in the Windows Phone emulator.&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
For installing Windows 8 you have several options. If you’re running a Windows 7 machine, you can either upgrade your existing install, create a separate partition for you Windows 8 install, or create a bootable vhd with Windows 8 (this is not the same as running inside of a virtual machine).&lt;/div&gt;
&lt;/h2&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; color: #222222; font-family: MuseoSans500, Helvetica, Arial, Verdana, Tahoma, sans-serif; font-size: 23px; line-height: 38px; margin: 0px; outline: 0px; padding: 0px; text-rendering: optimizelegibility; vertical-align: baseline;&quot;&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Download and install Visual Studio Express 2012 for Windows Phone from&amp;nbsp;&lt;a href=&quot;http://aka.ms/getvs12now&quot; style=&quot;border: 0px; color: #20328e; font-family: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;http://aka.ms/getvs12now&lt;/a&gt;. Visual Studio is the IDE, similar to Eclipse, that you’ll use for creating Windows Phone applications. Please note, there are a five Visual Studio Express products available. Make sure you download and install the one specifically for Windows Phone.&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://thinkfirstcodelater.com/blog/wp-content/uploads/2013/03/030613_1859_AndroidtoWi1.png&quot; style=&quot;border: 0px; font-family: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
There are two options for installation, a web installer and a disk image. A description of each is below, choose the one that works best for you:&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
If you already have a different edition of Visual Studio Express installed on your machine don’t worry, Visual Studio Express 2012 for Windows Phone will install just fine with it.&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
After you install Visual Studio you can try it free for up 30 days. After 30 days you must register to obtain a free product key for ongoing use. Just remember, it’s free as long as you register. You can register at&lt;a href=&quot;http://bit.ly/URM0I8&quot; style=&quot;border: 0px; color: #20328e; font-family: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;http://bit.ly/URM0I8&lt;/a&gt;.&lt;/div&gt;
&lt;/h2&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; color: #222222; font-family: MuseoSans500, Helvetica, Arial, Verdana, Tahoma, sans-serif; font-size: 23px; line-height: 38px; margin: 0px; outline: 0px; padding: 0px; text-rendering: optimizelegibility; vertical-align: baseline;&quot;&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
This step is not required to start developing Windows Phone applications. However, if you want to test your apps on Windows Phone hardware and submit your apps to the Windows Phone Store, you must register for a Windows Phone Dev Center account. You can learn more about the Windows Phone Dev Center and register at&amp;nbsp;&lt;a href=&quot;http://bit.ly/StpJhE&quot; style=&quot;border: 0px; color: #20328e; font-family: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;http://bit.ly/StpJhE&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
That’s it! You’re good to go. In the next lesson you’ll learn how to create your first Windows Phone 8 App.&amp;nbsp;&lt;/div&gt;
&lt;/h2&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/3168856455644018103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2013/04/setting-up-environment-configuration-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/3168856455644018103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/3168856455644018103'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2013/04/setting-up-environment-configuration-of.html' title='Setting Up Environment Configuration of Windows Phone 8 development'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-6804799288993094596</id><published>2013-03-28T21:20:00.001-07:00</published><updated>2013-03-28T21:20:30.379-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Powershell Script"/><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint Webparts"/><title type='text'>Add Multiple WebParts using PowerShell Script</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi All,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Imagine a scenario where you need to create 100 web part pages with different templates. You would spend a lot of time creating those pages. One of the approaches can be having a PowerShell script which can create web part pages for templates that you want.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Here is a simple script that creates web part pages in a loop.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;[xml]$xmlfile = Get-Content ConfigFile.xml&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;foreach( $sitecoll in $xmlfile.Configuration.&lt;wbr&gt;&lt;/wbr&gt;SiteCollection)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;{ $site = $&lt;a href=&quot;http://sitecoll.name/&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;sitecoll.name&lt;/a&gt;&amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;$spSite= Get-SPSite $site&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;$web = $spSite.OpenWeb()&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;$layoutTemplate = 4 # Template code&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;$web = $spSite.OpenWeb()&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;$list = $web.GetList(&quot;/sites/&lt;wbr&gt;&lt;/wbr&gt;SharePointSite/SitePages/&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;$i = 1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;while ($i -le 5)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;{ Write-Host $pageTitle = &quot;WebPartPage&amp;amp; + $i&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;border: 0px; line-height: 20px; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;$xml &lt;/span&gt;&lt;span style=&quot;border: 0px; color: #666600; line-height: 20px; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&quot;&amp;lt;?xml version=&quot;&quot;1.0&quot;&quot; encoding=&quot;&quot;UTF-8&quot;&quot;?&amp;amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&amp;lt;Method ID=&quot;&quot;0,NewWebPage&quot;&quot;&amp;gt;&amp;lt;SetList Scope=&quot;&quot;Request&quot;&quot;&amp;gt;&quot; + $list.ID + &quot;&amp;lt;/SetList&amp;gt;&amp;lt;SetVar Name=&quot;&quot;Cmd&quot;&quot;&amp;gt;NewWebPage&amp;lt;/&lt;wbr&gt;&lt;/wbr&gt;SetVar&amp;gt;&amp;lt;SetVar Name=&quot;&quot;ID&quot;&quot;&amp;gt;New&amp;lt;/SetVar&amp;gt;&amp;lt;&lt;wbr&gt;&lt;/wbr&gt;SetVar Name=&quot;&quot;Type&quot;&quot;&amp;gt;WebPartPage&amp;lt;/&lt;wbr&gt;&lt;/wbr&gt;SetVar&amp;gt;&amp;lt;SetVar Name=&quot;&quot;WebPartPageTemplate&quot;&quot;&amp;gt;&quot; + $layoutTemplate + &quot;&amp;lt;/SetVar&amp;gt;&amp;lt;SetVar Name=&quot;&quot;Overwrite&quot;&quot;&amp;gt;true&amp;lt;/&lt;wbr&gt;&lt;/wbr&gt;SetVar&amp;gt;&amp;lt;SetVar Name=&quot;&quot;Title&quot;&quot;&amp;gt;&quot; + $pageTitle + &quot;&amp;lt;/SetVar&amp;gt;&amp;lt;/Method&amp;gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;$result = $web.ProcessBatchData($xml)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;$i++&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Write-Host -foregroundcolor Green $pageTitle &#39;created successfully&#39;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: #1e1e1e; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;and when you run here is the output of the script and then final result&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; clear: both; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; text-align: center;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2595504627063847599&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioocRQ8Ts-LOvrq4VgKhn1u6EpySTBlARBfLxk2JfGG9xGscpbzSU5OxRo09o6MWri2SqLd7Eiya4cTtx7bl5RD90Uen-SAJNVU1nE_YWjRRY6IF5ddXCUntY5KiePkGurF4tPsj1DjrWP/s1600/AWP1.PNG&quot; style=&quot;color: #1155cc; margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;183&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioocRQ8Ts-LOvrq4VgKhn1u6EpySTBlARBfLxk2JfGG9xGscpbzSU5OxRo09o6MWri2SqLd7Eiya4cTtx7bl5RD90Uen-SAJNVU1nE_YWjRRY6IF5ddXCUntY5KiePkGurF4tPsj1DjrWP/s320/AWP1.PNG&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot; /&gt;
&lt;div style=&quot;background-color: white; clear: both; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; text-align: center;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2595504627063847599&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjPsLgCoAzQIFrkHatRt6rutYq0ubN9ghAKu_OGcqWbFiJv9qKIrwebcFhGPci9NfhUVJHd6qRV84DqUAtjCoXeOa6DNIBtKkdBXof59uljBngK-NRgQASxoRQUAYmO-g79qZpEiIz_iSi/s1600/awp2.PNG&quot; style=&quot;color: #1155cc; margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;124&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjPsLgCoAzQIFrkHatRt6rutYq0ubN9ghAKu_OGcqWbFiJv9qKIrwebcFhGPci9NfhUVJHd6qRV84DqUAtjCoXeOa6DNIBtKkdBXof59uljBngK-NRgQASxoRQUAYmO-g79qZpEiIz_iSi/s320/awp2.PNG&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;If you observe closely here we have specified layouttemplate, we have specified 4. This related to various templates like three column, four columns, headers the template that we select while creating web part page.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;Possible LayoutTemplate values are :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 13.6pt; margin: 0px 0px 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;# 1 - Full Page, Vertical&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 13.6pt; margin: 0px 0px 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;# 2 - Header, Footer, 3 Columns&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 13.6pt; margin: 0px 0px 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;# 3 - Header, Left Column, Body&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 13.6pt; margin: 0px 0px 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;# 4 - Header, Right Column, Body&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 13.6pt; margin: 0px 0px 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;# 5 - Header, Footer, 2 Columns, 4 Rows&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 13.6pt; margin: 0px 0px 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;# 6 - Header, Footer, 4 Columns, Top Row&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 13.6pt; margin: 0px 0px 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;# 7 - Left Column, Header, Footer, Top Row, 3 Columns&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;# 8 - Right Column, Header, Footer, Top Row, 3 Columns&lt;/span&gt;&lt;/div&gt;
&lt;br style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot; /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/6804799288993094596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2013/03/add-multiple-webparts-using-powershell.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/6804799288993094596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/6804799288993094596'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2013/03/add-multiple-webparts-using-powershell.html' title='Add Multiple WebParts using PowerShell Script'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioocRQ8Ts-LOvrq4VgKhn1u6EpySTBlARBfLxk2JfGG9xGscpbzSU5OxRo09o6MWri2SqLd7Eiya4cTtx7bl5RD90Uen-SAJNVU1nE_YWjRRY6IF5ddXCUntY5KiePkGurF4tPsj1DjrWP/s72-c/AWP1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-8776481151805551801</id><published>2013-02-23T23:19:00.001-08:00</published><updated>2013-02-23T23:19:08.071-08:00</updated><title type='text'>WebPart Life Cycle in different PostBacks</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;h4 style=&quot;background-color: #fefefe; border: 0px; color: #0072c6; font-family: &#39;PT Sans&#39;, Calibri, &#39;Droid Sans&#39;, sans-serif !important; font-size: 18px; line-height: 1; margin: 0px 0px 15px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
On Page Load&lt;/h4&gt;
&lt;ol style=&quot;background-color: #fefefe; border: 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; list-style: none; margin: 0px 0px 15px; outline: 0px; padding: 0px 0px 0px 30px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Constructor&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OnInit&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OnLoad&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ConnectionConsumer method is called if web part is connectable&amp;nbsp;&lt;span style=&quot;background-color: transparent; border: 0px; color: #888888; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;em style=&quot;background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(sets the connection providers interface in the webpart)&lt;/em&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CreateChildControls&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OnPreRender&amp;nbsp;&lt;em style=&quot;background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: #888888; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(if your web part is connectable you would typically call the connection provider here to retrieve data)&lt;/span&gt;&lt;/em&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;SaveViewState&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Render&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;RenderChildren&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;address style=&quot;background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
RenderContents&lt;/address&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 style=&quot;background-color: #fefefe; border: 0px; color: #0072c6; font-family: &#39;PT Sans&#39;, Calibri, &#39;Droid Sans&#39;, sans-serif !important; font-size: 18px; line-height: 1; margin: 0px 0px 15px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
On 1st Postback&lt;span style=&quot;background-color: transparent; border: 0px; color: #888888; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;(PostBack click handler sets ViewState via public Property)&lt;/span&gt;&lt;/h4&gt;
&lt;ol style=&quot;background-color: #fefefe; border: 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; list-style: none; margin: 0px 0px 15px; outline: 0px; padding: 0px 0px 0px 30px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Constructor&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OnInit&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CreateChildControls&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OnLoad&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;PostBack click handling&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ConnectionConsumer method is called if web part is connectable&amp;nbsp;&lt;span style=&quot;background-color: transparent; border: 0px; color: #888888; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;em style=&quot;background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(sets the connection providers interface in the webpart)&lt;/em&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OnPreRender&amp;nbsp;&lt;em style=&quot;background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: #888888; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(if your web part is connectable you would typically call the connection provider here to retrieve data)&lt;/span&gt;&lt;/em&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;SaveViewState&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Render&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;RenderChildren&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;RenderContents&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 style=&quot;background-color: #fefefe; border: 0px; color: #0072c6; font-family: &#39;PT Sans&#39;, Calibri, &#39;Droid Sans&#39;, sans-serif !important; font-size: 18px; line-height: 1; margin: 0px 0px 15px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
On 2nd Postback&lt;span style=&quot;background-color: transparent; border: 0px; color: #888888; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;(PostBack click handler sets ViewState via public Property)&lt;/span&gt;&lt;/h4&gt;
&lt;ol style=&quot;background-color: #fefefe; border: 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; list-style: none; margin: 0px 0px 15px; outline: 0px; padding: 0px 0px 0px 30px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Constructor&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OnInit&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: red; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;em style=&quot;background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;LoadViewState&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CreateChildControls&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OnLoad&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;PostBack click handling&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ConnectionConsumer method is called if web part is connectable&amp;nbsp;&lt;span style=&quot;background-color: transparent; border: 0px; color: #888888; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;em style=&quot;background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(sets the connection providers interface in the webpart)&lt;/em&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OnPreRender&amp;nbsp;&lt;em style=&quot;background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: #888888; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(if your web part is connectable you would typically call the connection provider here to retrieve data)&lt;/span&gt;&lt;/em&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;SaveViewState&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Render&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;RenderChildren&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;RenderContents&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;background-color: #fefefe; border: 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 15px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Note that during the 2nd postback,&amp;nbsp;&lt;strong style=&quot;background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;LoadViewState&lt;/strong&gt;, is called, since in the 1st postback the click handler sets the value of the ViewState backed public property.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/8776481151805551801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2013/02/webpart-life-cycle-in-different.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/8776481151805551801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/8776481151805551801'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2013/02/webpart-life-cycle-in-different.html' title='WebPart Life Cycle in different PostBacks'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-1814427355968701848</id><published>2013-02-21T22:59:00.001-08:00</published><updated>2013-02-21T22:59:51.109-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SandBox Solution"/><title type='text'>Where are Assemblies in Sandboxed Solutions Deployed?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi All,&lt;br /&gt;
&lt;br /&gt;
Sometime back I started working on SandBox Solutions. I came across many issues and situation in terms of restrictions and Resource Point Utilization.&lt;br /&gt;
&lt;br /&gt;
When I tried creating a Visual WebPart then I neede PowerTool VS extensions inorder to make it work.&lt;br /&gt;
Hence I realized that in sandbox solution, we are not dealing with file system. It its not that way then where my assemblies reside.&lt;br /&gt;
&lt;br /&gt;
Then came across a msdn article which enlightened me with following facts.&lt;br /&gt;
&lt;br /&gt;
The assemblies in the sandboxed solution are included in the solution pkg i.e. &quot;.wsp&quot; file, and the pkg is deployed to the site collection&#39;s solution gallery.&lt;br /&gt;
When a sandbox solution is accessed for the first time i.e. when a user access the webpart from sandbox solution, any assembly in the solution is extracted from the pkg in the gallary and copied to the file system of the server that is handling the sandboxed request. The location is&lt;br /&gt;
&lt;i&gt;c:\ProgramData\Microsoft\SharePoint\UCCache&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
The executable of this service is SPUCHostService.exe. The server that handles the sandboxed request is not necessarily the front-end web server that is handling the initial HTTP request.&lt;br /&gt;
&lt;span style=&quot;color: #2a2a2a; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;The&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;color: #2a2a2a; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;Microsoft SharePoint Foundation Sandboxed Code Service&lt;/strong&gt;&lt;span style=&quot;color: #2a2a2a; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2a2a2a; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;can be run on back-end application servers in the farm instead. Because the sandboxed user process (SPUCWorkerProcess.exe) cannot copy anything to the file system, the copying is done by the&lt;/span&gt;&lt;strong style=&quot;color: #2a2a2a; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;Microsoft SharePoint Foundation Sandboxed Code Service&lt;/strong&gt;&lt;span style=&quot;color: #2a2a2a; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #2a2a2a; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; padding-bottom: 15px;&quot;&gt;
The assemblies of a sandboxed solution do not stay in the file cache perpetually. When the user session that accessed the solution ends, the assemblies stay in the cache for only a short time, and they may be reloaded from there if another user session accesses them. Eventually, if they are not accessed, they are removed in accordance with a proprietary algorithm that takes into account how busy the server is and how much time has gone by since the assemblies were last accessed. If the sandboxed solution is used after that time, the assemblies are extracted again and copied to the UCCache.&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/1814427355968701848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2013/02/where-are-assemblies-in-sandboxed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/1814427355968701848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/1814427355968701848'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2013/02/where-are-assemblies-in-sandboxed.html' title='Where are Assemblies in Sandboxed Solutions Deployed?'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-6835091090561164977</id><published>2013-01-19T00:05:00.001-08:00</published><updated>2013-04-02T20:04:06.694-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CAML Query"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>How to create a Dynamic  CAML Query</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi All,&lt;br /&gt;
&lt;br /&gt;
Many a times you might come into a situation when you have to deal with some complex query building and the scenario is like you have to pull the data from a SharePoint list and the records on which you need to fire the &amp;lt;Where&amp;gt; clause is not fixed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; font-size: 15px; line-height: 21px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
So, you to need to write a dynamic query where the &amp;lt;OR&amp;gt; tags changes accordingly.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; font-size: 15px; line-height: 21px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Here is the code:&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; font-size: 15px; line-height: 21px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: #f6f6f6; font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; font-size: 15px; line-height: 1.1em; margin-bottom: 0.5em; margin-top: 0.5em; padding: 0px;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: #669933; font-style: italic; line-height: 13px;&quot;&gt;// This lstPeers can be of any type like array or List Type or Collection.&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;List&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lstPeers&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;List&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;SPQuery&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;peersQuery&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;SPQuery&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;string&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;createquery&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot; style=&quot;color: #cc9933; font-weight: bold; line-height: 13px;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #f6f6f6; margin-bottom: 0.5em; margin-top: 0.5em; padding: 0px;&quot;&gt;&lt;span class=&quot;p&quot; style=&quot;font-size: 15px; line-height: 16.5px;&quot;&gt;peersQuery.Query = &quot;&amp;lt;Where&amp;gt;&quot; + CreateDynamicQuery(createquery, lstPeers) + &quot;&amp;lt;/Where&amp;gt;&quot;;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; font-size: 15px; line-height: 21px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; font-size: 15px; line-height: 21px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Here is your Dynamic Query :&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; font-size: 15px; line-height: 21px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; font-size: 15px; line-height: 21px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: #f6f6f6; line-height: 1.1em; margin-bottom: 0.5em; margin-top: 0.5em; padding: 0px;&quot;&gt;&lt;span class=&quot;n&quot;&gt;protected&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;String&lt;/span&gt; &lt;span style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif;&quot;&gt;CreateDynamicQuery&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt;query&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt;List&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt;lstString&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
            &lt;span class=&quot;n&quot;&gt;bool&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;firstIteration&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot; style=&quot;color: #00aaaa; line-height: 13px;&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
            &lt;span class=&quot;k&quot; style=&quot;color: #0033cc; font-weight: bold; line-height: 13px;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;query&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;s&quot; style=&quot;color: #cc9933; font-weight: bold; line-height: 13px;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
            &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
                &lt;span class=&quot;n&quot;&gt;query&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot; style=&quot;color: #cc9933; font-weight: bold; line-height: 13px;&quot;&gt;&quot;&amp;lt;Or&amp;gt;&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;query&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;n&quot;&gt;firstIteration&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot; style=&quot;color: #00aaaa; line-height: 13px;&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
            &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

            &lt;span class=&quot;k&quot; style=&quot;color: #0033cc; font-weight: bold; line-height: 13px;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lstString&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Count&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot; style=&quot;line-height: 13px;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
            &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
                &lt;span class=&quot;n&quot;&gt;query&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;s&quot; style=&quot;color: #cc9933; font-weight: bold; line-height: 13px;&quot;&gt;&quot;&amp;lt;Or&amp;gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;n&quot;&gt;query&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;s&quot; style=&quot;color: #cc9933; font-weight: bold; line-height: 13px;&quot;&gt;&quot;&amp;lt;Eq&amp;gt;&amp;lt;FieldRef Name=&#39;Type&#39; /&amp;gt;&amp;lt;Value Type=&#39;Lookup&#39;&amp;gt;&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lstString&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot; style=&quot;line-height: 13px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot; style=&quot;color: #cc9933; font-weight: bold; line-height: 13px;&quot;&gt;&quot;&amp;lt;/Value&amp;gt;&amp;lt;/Eq&amp;gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;n&quot;&gt;query&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;s&quot; style=&quot;color: #cc9933; font-weight: bold; line-height: 13px;&quot;&gt;&quot;&amp;lt;Eq&amp;gt;&amp;lt;FieldRef Name=&#39;Type&#39; /&amp;gt;&amp;lt;Value Type=&#39;Lookup&#39;&amp;gt;&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lstString&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot; style=&quot;line-height: 13px;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot; style=&quot;color: #cc9933; font-weight: bold; line-height: 13px;&quot;&gt;&quot;&amp;lt;/Value&amp;gt;&amp;lt;/Eq&amp;gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;n&quot;&gt;query&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;s&quot; style=&quot;color: #cc9933; font-weight: bold; line-height: 13px;&quot;&gt;&quot;&amp;lt;/Or&amp;gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

                &lt;span class=&quot;n&quot;&gt;lstString&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;RemoveRange&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot; style=&quot;line-height: 13px;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot; style=&quot;line-height: 13px;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
                &lt;span class=&quot;n&quot;&gt;lstString&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;RemoveRange&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot; style=&quot;line-height: 13px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot; style=&quot;line-height: 13px;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;

                &lt;span class=&quot;k&quot; style=&quot;color: #0033cc; font-weight: bold; line-height: 13px;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;firstIteration&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
                    &lt;span class=&quot;n&quot;&gt;query&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;s&quot; style=&quot;color: #cc9933; font-weight: bold; line-height: 13px;&quot;&gt;&quot;&amp;lt;/Or&amp;gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

                &lt;span class=&quot;k&quot; style=&quot;color: #0033cc; font-weight: bold; line-height: 13px;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lstString&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Count&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;mi&quot; style=&quot;line-height: 13px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
                    &lt;span class=&quot;n&quot;&gt;query&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif;&quot;&gt;CreateDynamicQuery&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt;query&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt;lstString&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; line-height: 1.1em;&quot;&gt;);&lt;/span&gt;
            &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
            &lt;span class=&quot;k&quot; style=&quot;color: #0033cc; font-weight: bold; line-height: 13px;&quot;&gt;else&lt;/span&gt;
            &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
                &lt;span class=&quot;k&quot; style=&quot;color: #0033cc; font-weight: bold; line-height: 13px;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lstString&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Count&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;mi&quot; style=&quot;line-height: 13px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
                &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
                    &lt;span class=&quot;n&quot;&gt;query&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;s&quot; style=&quot;color: #cc9933; font-weight: bold; line-height: 13px;&quot;&gt;&quot;&amp;lt;Eq&amp;gt;&amp;lt;FieldRef Name=&#39;Type&#39; /&amp;gt;&amp;lt;Value Type=&#39;Lookup&#39;&amp;gt;&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lstString&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot; style=&quot;line-height: 13px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot; style=&quot;color: #cc9933; font-weight: bold; line-height: 13px;&quot;&gt;&quot;&amp;lt;/Value&amp;gt;&amp;lt;/Eq&amp;gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                    &lt;span class=&quot;k&quot; style=&quot;color: #0033cc; font-weight: bold; line-height: 13px;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;firstIteration&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
                        &lt;span class=&quot;n&quot;&gt;query&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;s&quot; style=&quot;color: #cc9933; font-weight: bold; line-height: 13px;&quot;&gt;&quot;&amp;lt;/Or&amp;gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
            &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
            &lt;span class=&quot;k&quot; style=&quot;color: #0033cc; font-weight: bold; line-height: 13px;&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;query&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; font-size: 15px; line-height: 21px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; font-size: 15px; line-height: 21px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
As you can notice you are calling a recursive function and dynamically creating the &amp;lt;OR&amp;gt; tags.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; font-size: 15px; line-height: 21px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; font-size: 15px; line-height: 21px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
I am sure this will help your case !!&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; font-size: 15px; line-height: 21px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; font-size: 15px; line-height: 21px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-family: &#39;Segoe UI&#39;, helvetica, arial, sans-serif; font-size: 15px; line-height: 21px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/6835091090561164977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2013/01/how-to-create-dynamic-caml-query.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/6835091090561164977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/6835091090561164977'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2013/01/how-to-create-dynamic-caml-query.html' title='How to create a Dynamic &lt;OR&gt; CAML Query'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-8032149883988050537</id><published>2013-01-10T23:14:00.002-08:00</published><updated>2013-01-10T23:14:18.142-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><title type='text'>Error occurred in deployment step &#39;Recycle IIS Application Pool&#39;: The communication object, System.ServiceModel.InstanceContext, cannot be used for communication</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi All,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: Georgia, &#39;Bitstream Charter&#39;, serif; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
When deploying a solution to SharePoint 2010, I suddenly got the error message:&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: Georgia, &#39;Bitstream Charter&#39;, serif; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;em style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Error occurred in deployment step ‘Recycle IIS Application Pool’: The communication object, System.ServiceModel.InstanceContext, cannot be used for communication because it has been Aborted.&lt;/em&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: Georgia, &#39;Bitstream Charter&#39;, serif; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
Restarting Visual Studio did the trick. (IISreset did not help..)&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/8032149883988050537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2013/01/error-occurred-in-deployment-step.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/8032149883988050537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/8032149883988050537'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2013/01/error-occurred-in-deployment-step.html' title='Error occurred in deployment step &#39;Recycle IIS Application Pool&#39;: The communication object, System.ServiceModel.InstanceContext, cannot be used for communication'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-2258263013975356175</id><published>2013-01-09T22:42:00.002-08:00</published><updated>2013-01-09T22:42:24.611-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Client Object Model"/><category scheme="http://www.blogger.com/atom/ns#" term="SandBox Solution"/><title type='text'>SharePoint 2010 Web Part Error &quot;The UserCodeToken is invalid&quot;</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 class=&quot;ExternalClass527A109D93E34667BC52B2048752D30F&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Verdana, Arial, sans-serif; font-size: 11px; line-height: 18.116666793823242px;&quot;&gt;
Hi All,&lt;/div&gt;
&lt;div class=&quot;ExternalClass527A109D93E34667BC52B2048752D30F&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Verdana, Arial, sans-serif; font-size: 11px; line-height: 18.116666793823242px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;ExternalClass527A109D93E34667BC52B2048752D30F&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Verdana, Arial, sans-serif; font-size: 11px; line-height: 18.116666793823242px;&quot;&gt;
The error says &quot;Unhandled exception was thrown by the sandboxed code wrapper&#39;s Execute method in the partial trust app domain: The UserCodeToken is invalid&quot;. While this error message is very descriptive, it wasn&#39;t very helpful in determining a solution. No events in the error&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #4c4c4c; font-family: Verdana, Arial, sans-serif; font-size: 11px; line-height: 18.116666793823242px;&quot;&gt;​&lt;/span&gt;&lt;div style=&quot;background-color: white; color: #4c4c4c; font-family: Verdana, Arial, sans-serif; font-size: 11px; line-height: 18.116666793823242px; margin-bottom: 1em;&quot;&gt;
&amp;nbsp;&lt;strong&gt;Update&lt;/strong&gt;: Sandboxed solutions not working, try restarting the service in powershell &quot;Restart-Service SPUsercodeV4&quot;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/2258263013975356175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2013/01/sharepoint-2010-web-part-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/2258263013975356175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/2258263013975356175'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2013/01/sharepoint-2010-web-part-error.html' title='SharePoint 2010 Web Part Error &quot;The UserCodeToken is invalid&quot;'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-5634146499125664149</id><published>2013-01-07T03:06:00.001-08:00</published><updated>2013-01-07T03:06:43.242-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Client Object Model"/><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Populate Drop Down Lists in Client Object Model</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi All,&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f9f7f5; color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;SharePoint 2010 provided two major custom web part enhancements: Visual Web Parts and Client Side Object Model (COM) using JavaScript. We can populate a dropdown items from a sharepoint list.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9f7f5; color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #f9f7f5; color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;First populate a list for example : InterviewerList&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9f7f5; color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #f9f7f5; color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;In visual webpart add following tag in .ascx file inside a DIV tag :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9f7f5;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 18px;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&amp;lt;select id=&quot;ddlInterviewerName&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 18px;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 18px;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&amp;lt;/select&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 18px;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 18px;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Then jump to your .js file and write following code :&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 18px;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;jQuery(document).ready(function () {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; ExecuteOrDelayUntilScriptLoaded(function () {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; obj = new ScheduleInterviewClass();&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; obj.LoadObjects();&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; }, &quot;sp.js&quot;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;});&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;function ScheduleInterviewClass() {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; this.LoadObjects = LoadObjects;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; var siteObjects = {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ctx: null,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; web: null,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; url: null,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; InterviewerList: null,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; InterviewerListItems: null&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; function LoadObjects() {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; siteObjects.ctx = SP.ClientContext.get_current();&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; siteObjects.web = siteObjects.ctx.get_web();&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; siteObjects.ctx.load(siteObjects.web);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; siteObjects.ctx.executeQueryAsync(Function.createDelegate(this, LoadObjectsOnSuccess), Function.createDelegate(this, LoadObjectsOnFailure));&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; function LoadObjectsOnSuccess() {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; siteObjects.InterviewerList = siteObjects.web.get_lists().getByTitle(&quot;InterviewerList&quot;); &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var query = new SP.CamlQuery();&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query.set_viewXml();&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; siteObjects.InterviewerListItems = siteObjects.InterviewerList.getItems(query);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; siteObjects.ctx.load(siteObjects.InterviewerListItems);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; siteObjects.ctx.executeQueryAsync(Function.createDelegate(null, RenderHtmlOnSuccess), Function.createDelegate(null, RenderHtmlOnFailure));&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; function LoadObjectsOnFailure() {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(&quot;Objects Not Loaded Properly. Try again&quot;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; function RenderHtmlOnSuccess() {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var ddlInterviewer = this.document.getElementById(&quot;ddlInterviewerName&quot;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ddlInterviewer.options.length = 0;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var enumerator = siteObjects.InterviewerListItems.getEnumerator();&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;&lt;i&gt; while (enumerator.moveNext()) {&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var currentItem = enumerator.get_current();&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ddlInterviewer.options[ddlInterviewer.options.length] = new Option(currentItem.get_item(&quot;InterviewerName&quot;).get_lookupValue(), currentItem.get_item(&quot;ID&quot;)); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; function RenderHtmlOnFailure(sender, args) {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(args.get_message());&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(&quot;Not able to render HTML&quot;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/5634146499125664149/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2013/01/populate-drop-down-lists-in-client.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/5634146499125664149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/5634146499125664149'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2013/01/populate-drop-down-lists-in-client.html' title='Populate Drop Down Lists in Client Object Model'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-986736940362932465</id><published>2013-01-06T21:12:00.000-08:00</published><updated>2013-01-06T21:12:03.905-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint Webparts"/><title type='text'>How To Add Custom Web Part Properties To Visual Web Part In SharePoint 2010</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;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
Hey Folks,&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
Let’s see how we can add custom web part properties to a visual web part in SharePoint 2010.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
Open Visual Studio 2010 -&amp;gt; File -&amp;gt; New -&amp;gt; Project -&amp;gt; Visual C# -&amp;gt; SharePoint -&amp;gt; 2010 and select Visual Web Part project template as below:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://i.imgur.com/4QIE4.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 600px; padding: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
In SharePoint Customization Wizard, validate the SharePoint 2010 site URL as below:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://i.imgur.com/4p6bI.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 600px; padding: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
Once Visual Studio 2010 open ups, it will look like below:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://i.imgur.com/TISZ7.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 600px; padding: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
Open&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;VisualWebPart1.cs&lt;/strong&gt;&amp;nbsp;file and add below code:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
namespace AddCustomProperty.VisualWebPart1&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;{&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;[ToolboxItemAttribute(false)]&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;public class VisualWebPart1 : WebPart&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;{&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;// Visual Studio might automatically update this path when you change the Visual Web Part project item.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;private const string _ascxPath = @”~/_CONTROLTEMPLATES/AddCustomProperty/VisualWebPart1/VisualWebPart1UserControl.ascx”;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
private string _Name;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;[WebBrowsable(true), WebDisplayName(&quot;Name&quot;), WebDescription(&quot;My Name&quot;),&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Personalizable(PersonalizationScope.Shared), Category(&quot;Custom Property&quot;),&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;System.ComponentModel.DefaultValue(&quot;&quot;)]&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
public string Name&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;{&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;get { return _Name; }&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;set { _Name = value; }&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;}&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
protected override void CreateChildControls()&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;{&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;VisualWebPart1UserControl control = (VisualWebPart1UserControl)Page.LoadControl(_ascxPath);&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;control.Name = Name;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Controls.Add(control);&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;}&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;}&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;}&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
It should look like below:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://i.imgur.com/01kay.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 600px; padding: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
Open&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;VisualWebPart1UserControl.ascx&lt;/strong&gt;&amp;nbsp;file and add below code:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
&lt;code style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;/code&gt;&lt;/div&gt;
&lt;code style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 17px; margin: 0px; padding: 0px;&quot;&gt;&lt;/code&gt;&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
&lt;code style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;/code&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;&lt;/span&gt;&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
It should look like below:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://i.imgur.com/SZdXa.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 600px; padding: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
Open&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;VisualWebPart1UserControl.ascx.cs&lt;/strong&gt;&amp;nbsp;file and add below code:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
&lt;code style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;/code&gt;&lt;/div&gt;
&lt;code style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 17px; margin: 0px; padding: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 10px; padding: 0px;&quot;&gt;
namespace AddCustomProperty.VisualWebPart1&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;{&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;public partial class VisualWebPart1UserControl : UserControl&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;{&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;public string Name { get; set; }&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10px; padding: 0px;&quot;&gt;
protected void Page_Load(object sender, EventArgs e)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;{&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;NameLiteral.Text = &quot;Your Name is : &quot; + this.Name;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;}&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;}&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;}&lt;/div&gt;
&lt;/code&gt;&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
&lt;code style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;/code&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;&lt;/span&gt;&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
It should look like below:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://i.imgur.com/bLMWP.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 600px; padding: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
Deploy The Project:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://i.imgur.com/dyhMZ.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 600px; padding: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
Final Look:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://i.imgur.com/PGls7.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 600px; padding: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding: 0px;&quot;&gt;
Thanks &amp;amp; Have Fun!!&amp;nbsp;&lt;img alt=&quot;:)&quot; class=&quot;wp-smiley&quot; src=&quot;http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g&quot; style=&quot;border: 0px; margin: 0px; max-width: 600px; padding: 0px;&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/986736940362932465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2013/01/how-to-add-custom-web-part-properties.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/986736940362932465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/986736940362932465'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2013/01/how-to-add-custom-web-part-properties.html' title='How To Add Custom Web Part Properties To Visual Web Part In SharePoint 2010'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-4348517201676527181</id><published>2013-01-06T20:50:00.001-08:00</published><updated>2013-01-06T20:51:32.548-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2013"/><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint Apps"/><title type='text'>What is an App in SharePoint 2013</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 class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;App is similar to a web part. One main key difference is everything is at the client side and not on the server side when you write a code developing an app which is called client web part.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;In SharePoint 2013 Lists and Libraries are now termed as apps.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;SharePoint now has its own app store where we get some free apps and some paid apps which can be installed and then can be used inside SharePoint.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;There are three hosting options when you create app for SharePoint.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;1) SharePoint hosted - On Premises.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;2) Externally hosted&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;span style=&quot;line-height: 14px;&quot;&gt;3) SharePoint Online - Sandbox solutions can be created. (deprecated now in SharePoint 2013) or&amp;nbsp;&lt;/span&gt;new apps web part (client web part) can be used.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;Certain important points about an app are :&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;li style=&quot;margin-left: 15px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;App cannot have any server side code.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;li style=&quot;margin-left: 15px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;Apps&amp;nbsp;&amp;nbsp;get created in a special “app web” on a special URL which is isolated from the original SharePoint web. Each app is a part of dedicated site collection.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;li style=&quot;margin-left: 15px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;App does not have permission to talk to the parent site or site collection&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;li style=&quot;margin-left: 15px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;App cannot talk to the host site. ( a site in which app is displayed)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;li style=&quot;margin-left: 15px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Apps can be created using Visual Studio 2012&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;or using &quot;Napa&quot; Office 365 Development Tools&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;So SharePoint 2013 apps do not live in SharePoint rather they execute within the browser client or in a non-SharePoint server such as IIS or Windows Azure.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Apps can only be added by users with Full Control permission to the site. As mentioned earlier Apps can be installed from the centralized app store from on premises SharePoint or from public app store.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Apps can also be opened as a full browser screen or can also be a part of page. When we want app as a part of page we can use app part just like a web part to display that app in the app part. App part will display content of that app part in Iframe html element.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Regardless of how you authenticate your app with SharePoint, you need to have user consent to perform actions. You declare the required permissions in the app manifest file while developing, and the user is asked to grant or deny those permissions to the app during installation.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You can connect your app with just about any internal or public web services, take advantage of the new OAuth 2.0 support in SharePoint, and use the Representational State Transfer (REST) and client APIs (JavaScript and .NET) to integrate and connect your app with SharePoint.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;There is a list of available apps that can be downloaded (some free / some paid versions) from Microsoft market place for SharePoint 2013.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0px;&quot;&gt;
&lt;a href=&quot;http://office.microsoft.com/en-us/store/apps-for-sharepoint-FX102804987.aspx&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Microsoft App Market place for SharePoint 2013&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/4348517201676527181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2013/01/what-is-app-in-sharepoint-2013.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/4348517201676527181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/4348517201676527181'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2013/01/what-is-app-in-sharepoint-2013.html' title='What is an App in SharePoint 2013'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-3817861595904936756</id><published>2012-12-25T22:26:00.002-08:00</published><updated>2013-04-02T20:00:34.543-07:00</updated><title type='text'>FBA Cookie getting expired only in Safari and Chrome.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi Reader,&lt;br /&gt;
&lt;br /&gt;
This blog is for all those guys who have tried their level best to solve this unique issue and still couldnt get the root cause why the Form Based Authentication Cookie getting expired daily ( almost after some hours ) ONLY on Safari and Chrome browser.&lt;br /&gt;
&lt;br /&gt;
I have spend lot many days finding the root cause of this issue and yes also solve it for clients.&lt;br /&gt;
Applicaiton that use hosted Safari inside of UIWebView ( which is also Chrome) or Apps that host a website in PhoneGap usually face this issue. If its FBA then Google Chrome for iOS might switch FormsAuth to Cookieless mode.&lt;br /&gt;
&lt;br /&gt;
This has been fixed in .NET 4.5 and you wont see this issue if you have .NET 4.5 installed, even uf you&#39;re running .NET 4 application. Since now you are facing this trouble then here are following steps to follow and immediately get rid of this issue.&lt;br /&gt;
&lt;br /&gt;
Thanks to blogger:&amp;nbsp;&lt;a href=&quot;http://www.hanselman.com/blog/FormsAuthenticationOnASPNETSitesWithTheGoogleChromeBrowserOnIOS.aspx&quot;&gt;Scott&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
STEP 1: &amp;nbsp;Modify your web.config file.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;xml&quot; style=&quot;background-color: white; border: 1px solid rgb(221, 221, 221); clear: none; color: #110000; font-size: 12px; line-height: 1.333; overflow: visible; padding: 0.8em; width: auto;&quot;&gt;&lt;pre class=&quot;xml&quot; style=&quot;border: 1px solid rgb(221, 221, 221); clear: none; line-height: 1.333; overflow: visible; padding: 0.8em; width: auto;&quot;&gt;&lt;span style=&quot;color: #009900; font-family: &#39;Segoe UI&#39;, Calibri, &#39;Myriad Pro&#39;, Myriad, &#39;Trebuchet MS&#39;, Helvetica, Arial, sans-serif; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;authentication&lt;/span&gt; &lt;span style=&quot;color: #000066; margin: 0px; padding: 0px;&quot;&gt;mode&lt;/span&gt;=&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;&quot;Forms&quot;&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span style=&quot;color: #009900; font-family: &#39;Segoe UI&#39;, Calibri, &#39;Myriad Pro&#39;, Myriad, &#39;Trebuchet MS&#39;, Helvetica, Arial, sans-serif; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;forms&lt;/span&gt; &lt;span style=&quot;color: #000066; margin: 0px; padding: 0px;&quot;&gt;loginUrl&lt;/span&gt;=&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;&quot;~/Account/SignIn&quot;&lt;/span&gt; &lt;span style=&quot;color: #000066; margin: 0px; padding: 0px;&quot;&gt;timeout&lt;/span&gt;=&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;&quot;2880&quot;&lt;/span&gt; &lt;span style=&quot;color: #000066; margin: 0px; padding: 0px;&quot;&gt;cookieless&lt;/span&gt;=&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;&quot;UseCookies&quot;&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900; font-family: &#39;Segoe UI&#39;, Calibri, &#39;Myriad Pro&#39;, Myriad, &#39;Trebuchet MS&#39;, Helvetica, Arial, sans-serif; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/authentication&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
STEP 2: &amp;nbsp;Once you explore your Sharepoint hosted site in IIS you will notice the app_browser folder.&lt;br /&gt;
Create a &quot;generic.browser&quot; named file in that folder and paste the exact code in it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;xml&quot; style=&quot;border: 1px solid rgb(221, 221, 221); clear: none; color: #110000; font-size: 12px; line-height: 1.333; overflow: visible; padding: 0.8em; width: auto;&quot;&gt;&lt;div style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; line-height: normal; white-space: normal;&quot;&gt;
&amp;lt;browsers&amp;gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; line-height: normal; white-space: normal;&quot;&gt;
&amp;nbsp; &amp;lt;browser refID=&quot;GenericDownlevel&quot;&amp;gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; line-height: normal; white-space: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;capabilities&amp;gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; line-height: normal; white-space: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;capability name=&quot;cookies&quot; value=&quot;true&quot; /&amp;gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; line-height: normal; white-space: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/capabilities&amp;gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; line-height: normal; white-space: normal;&quot;&gt;
&amp;nbsp; &amp;lt;/browser&amp;gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; line-height: normal; white-space: normal;&quot;&gt;
&amp;lt;/browsers&amp;gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
STEP 3: Generate a New MachineKey.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;“Machine key a unique key that
differentiates one computer from others. And this key is used to create unique
identifier when cookie is created in the client machine from a server side
code. This key is generally present in the machine.config file when you install
.NET framework that is generally not visible to the user as it remains in the
.NET Framework installation directory. When you specify the same key in your
web.config, the value of machine key specified in the machine.config is
overridden by the one you have specified in the web.config file.&amp;nbsp;“&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;Once the key is generated, they are converted into a string of hexadecimal characters.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;Created a 256-bit decryption key
and a 512-bit validation key, with Rijndael as the data validation algorithm.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;You need to include this newly created machine key in your web.config file.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;a href=&quot;http://aspnetresources.com/tools/machineKey&quot;&gt;Generate Machine Key&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hope my above solution will surely save lot of efforts and time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/3817861595904936756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2012/12/fba-cookie-getting-expired-only-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/3817861595904936756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/3817861595904936756'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2012/12/fba-cookie-getting-expired-only-in.html' title='FBA Cookie getting expired only in Safari and Chrome.'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-4413951326343109998</id><published>2012-12-20T04:15:00.002-08:00</published><updated>2012-12-20T04:15:26.026-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>SharePoint Fields Internal Names List</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;background-color: #ced5db; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.149999618530273px;&quot;&gt;
Much used reprinting of list of fields with internal names for easy reference:&lt;/div&gt;
&lt;div style=&quot;background-color: #ced5db; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.149999618530273px;&quot;&gt;
&lt;strong&gt;Document Library fields&lt;/strong&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; class=&quot;fields&quot; style=&quot;background-color: #ced5db; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.149999618530273px; margin-left: 1px; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;&lt;strong&gt;Display Name&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;&quot;&gt;&lt;strong&gt;Internal Name&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;&quot;&gt;&lt;strong&gt;GUID&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;&quot;&gt;&lt;strong&gt;Type&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;ID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;ID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{1d22ea11-1e32-424e-89ab-9fedbadb6ce1}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Counter&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Content Type ID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;ContentTypeId&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{03e45e84-1992-4d42-9116-26f756012634}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;ContentTypeId&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Content Type&lt;/td&gt;&lt;td class=&quot;&quot;&gt;ContentType&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{c042a256-787d-4a6f-8a8a-cf6ab767f12d}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Text&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Created&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Created&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{8c06beca-0777-48f7-91c7-6da68bc07b69}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;DateTime&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Created By&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Author&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{1df5e554-ec7e-46a6-901d-d85a3881cb18}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;User&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Modified&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Modified&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{28cf69c5-fa48-462a-b5cd-27b6f9d2bd5f}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;DateTime&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Modified By&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Editor&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{d31655d1-1d5b-4511-95a1-7a09e9b75bf2}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;User&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Has Copy Destinations&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_HasCopyDestinations&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{26d0756c-986a-48a7-af35-bf18ab85ff4a}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Boolean&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Copy Source&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_CopySource&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{6b4e226d-3d88-4a36-808d-a129bf52bccf}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Text&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Approval Status&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_ModerationStatus&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{fdc3b2ed-5bf2-4835-a4bc-b885f3396a61}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;ModStat&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Approver Comments&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_ModerationComments&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{34ad21eb-75bd-4544-8c73-0e08330291fe}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Note&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;URL Path&lt;/td&gt;&lt;td class=&quot;&quot;&gt;FileRef&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{94f89715-e097-4e8b-ba79-ea02aa8b7adb}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Path&lt;/td&gt;&lt;td class=&quot;&quot;&gt;FileDirRef&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{56605df6-8fa1-47e4-a04c-5b384d59609f}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Modified&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Last_x0020_Modified&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{173f76c8-aebd-446a-9bc9-769a2bd2c18f}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Created&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Created_x0020_Date&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{998b5cff-4a35-47a7-92f3-3914aa6aa4a2}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;File Size&lt;/td&gt;&lt;td class=&quot;&quot;&gt;File_x0020_Size&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{8fca95c0-9b7d-456f-8dae-b41ee2728b85}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Item Type&lt;/td&gt;&lt;td class=&quot;&quot;&gt;FSObjType&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{30bb605f-5bae-48fe-b4e3-1f81d9772af9}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Effective Permissions Mask&lt;/td&gt;&lt;td class=&quot;&quot;&gt;PermMask&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{ba3c27ee-4791-4867-8821-ff99000bac98}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;ID of the User who has the item Checked Out&lt;/td&gt;&lt;td class=&quot;&quot;&gt;CheckedOutUserId&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{a7b731a3-1df1-4d74-a5c6-e2efba617ae2}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Is Checked out to local&lt;/td&gt;&lt;td class=&quot;&quot;&gt;IsCheckedoutToLocal&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{cfaabd0f-bdbd-4bc2-b375-1e779e2cad08}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Checked Out To&lt;/td&gt;&lt;td class=&quot;&quot;&gt;CheckoutUser&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{3881510a-4e4a-4ee8-b102-8ee8e2d0dd4b}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;User&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Name&lt;/td&gt;&lt;td class=&quot;&quot;&gt;FileLeafRef&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{8553196d-ec8d-4564-9861-3dbe931050c8}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;File&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Unique Id&lt;/td&gt;&lt;td class=&quot;&quot;&gt;UniqueId&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{4b7403de-8d94-43e8-9f0f-137a3e298126}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;ProgId&lt;/td&gt;&lt;td class=&quot;&quot;&gt;ProgId&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{c5c4b81c-f1d9-4b43-a6a2-090df32ebb68}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;ScopeId&lt;/td&gt;&lt;td class=&quot;&quot;&gt;ScopeId&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{dddd2420-b270-4735-93b5-92b713d0944d}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Virus Status&lt;/td&gt;&lt;td class=&quot;&quot;&gt;VirusStatus&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{4a389cb9-54dd-4287-a71a-90ff362028bc}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Checked Out To&lt;/td&gt;&lt;td class=&quot;&quot;&gt;CheckedOutTitle&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{9d4adc35-7cc8-498c-8424-ee5fd541e43a}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Check In Comment&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_CheckinComment&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{58014f77-5463-437b-ab67-eec79532da67}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Checked Out To&lt;/td&gt;&lt;td class=&quot;&quot;&gt;LinkCheckedOutTitle&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{e2a15dfd-6ab8-4aec-91ab-02f6b64045b0}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Document Modified By&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Modified_x0020_By&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{822c78e3-1ea9-4943-b449-57863ad33ca9}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Text&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Document Created By&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Created_x0020_By&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{4dd7e525-8d6b-4cb4-9d3e-44ee25f973eb}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Text&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;File Type&lt;/td&gt;&lt;td class=&quot;&quot;&gt;File_x0020_Type&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{39360f11-34cf-4356-9945-25c44e68dade}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Text&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;HTML File Type&lt;/td&gt;&lt;td class=&quot;&quot;&gt;HTML_x0020_File_x0020_Type&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{0c5e0085-eb30-494b-9cdd-ece1d3c649a2}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Text&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Source Url&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_SourceUrl&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{c63a459d-54ba-4ab7-933a-dcf1c6fadec2}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Text&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Shared File Index&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_SharedFileIndex&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{034998e9-bf1c-4288-bbbd-00eacfc64410}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Text&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Edit Menu Table Start&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_EditMenuTableStart&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{3c6303be-e21f-4366-80d7-d6d0a3b22c7a}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Edit Menu Table End&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_EditMenuTableEnd&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{2ea78cef-1bf9-4019-960a-02c41636cb47}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Name&lt;/td&gt;&lt;td class=&quot;&quot;&gt;LinkFilenameNoMenu&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{9d30f126-ba48-446b-b8f9-83745f322ebe}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Name&lt;/td&gt;&lt;td class=&quot;&quot;&gt;LinkFilename&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{5cc6dc79-3710-4374-b433-61cb4a686c12}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Type&lt;/td&gt;&lt;td class=&quot;&quot;&gt;DocIcon&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{081c6e4c-5c14-4f20-b23e-1a71ceb6a67c}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Server Relative URL&lt;/td&gt;&lt;td class=&quot;&quot;&gt;ServerUrl&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{105f76ce-724a-4bba-aece-f81f2fce58f5}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Encoded Absolute URL&lt;/td&gt;&lt;td class=&quot;&quot;&gt;EncodedAbsUrl&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{7177cfc7-f399-4d4d-905d-37dd51bc90bf}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Name&lt;/td&gt;&lt;td class=&quot;&quot;&gt;BaseName&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{7615464b-559e-4302-b8e2-8f440b913101}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;File Size&lt;/td&gt;&lt;td class=&quot;&quot;&gt;FileSizeDisplay&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{78a07ba4-bda8-4357-9e0f-580d64487583}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Property Bag&lt;/td&gt;&lt;td class=&quot;&quot;&gt;MetaInfo&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{687c7f94-686a-42d3-9b67-2782eac4b4f8}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Level&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_Level&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{43bdd51b-3c5b-4e78-90a8-fb2087f71e70}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Integer&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Is Current Version&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_IsCurrentVersion&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{c101c3e7-122d-4d4d-bc34-58e94a38c816}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Boolean&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Select&lt;/td&gt;&lt;td class=&quot;&quot;&gt;SelectTitle&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{b1f7969b-ea65-42e1-8b54-b588292635f2}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Select&lt;/td&gt;&lt;td class=&quot;&quot;&gt;SelectFilename&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{5f47e085-2150-41dc-b661-442f3027f552}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Edit&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Edit&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{503f1caa-358e-4918-9094-4a2cdc4bc034}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;owshiddenversion&lt;/td&gt;&lt;td class=&quot;&quot;&gt;owshiddenversion&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{d4e44a66-ee3a-4d02-88c9-4ec5ff3f4cd5}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Integer&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;UI Version&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_UIVersion&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{7841bf41-43d0-4434-9f50-a673baef7631}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Integer&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Version&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_UIVersionString&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{dce8262a-3ae9-45aa-aab4-83bd75fb738a}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Text&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Instance ID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;InstanceID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{50a54da4-1528-4e67-954a-e2d24f1e9efb}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Integer&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Order&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Order&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{ca4addac-796f-4b23-b093-d2a3f65c0774}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Number&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;GUID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;GUID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{ae069f25-3ac2-4256-b9c3-15dbc15da0e0}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Guid&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Workflow Version&lt;/td&gt;&lt;td class=&quot;&quot;&gt;WorkflowVersion&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{f1e020bc-ba26-443f-bf2f-b68715017bbc}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Integer&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Workflow Instance ID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;WorkflowInstanceID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{de8beacf-5505-47cd-80a6-aa44e7ffe2f4}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Guid&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Source Version (Converted Document)&lt;/td&gt;&lt;td class=&quot;&quot;&gt;ParentVersionString&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{bc1a8efb-0f4c-49f8-a38f-7fe22af3d3e0}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Source Name (Converted Document)&lt;/td&gt;&lt;td class=&quot;&quot;&gt;ParentLeafName&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{774eab3a-855f-4a34-99da-69dc21043bec}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Title&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Title&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{fa564e0f-0c70-4ab9-b&lt;a class=&quot;htc&quot; href=&quot;livecall:863-0177&quot; mce_href=&quot;livecall:863-0177&quot; style=&quot;color: #0066dd; cursor: pointer; outline: none; text-decoration: initial;&quot;&gt;863-0177&lt;/a&gt;e6ddd247}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Text&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Template Link&lt;/td&gt;&lt;td class=&quot;&quot;&gt;TemplateUrl&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{4b1bf6c6-4f39-45ac-acd5-16fe7a214e5e}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Text&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Html File Link&lt;/td&gt;&lt;td class=&quot;&quot;&gt;xd_ProgID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{cd1ecb9f-dd4e-4f29-ab9e-e9ff40048d64}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Text&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Is Signed&lt;/td&gt;&lt;td class=&quot;&quot;&gt;xd_Signature&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{fbf29b2d-cae5-49aa-8e0a-29955b540122}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Boolean&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Merge&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Combine&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{e52012a0-51eb-4c0c-8dfb-9b8a0ebedcb6}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Relink&lt;/td&gt;&lt;td class=&quot;&quot;&gt;RepairDocument&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{5d36727b-bcb2-47d2-a231-1f0bc63b7439}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;background-color: #ced5db; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.149999618530273px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #ced5db; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.149999618530273px;&quot;&gt;
&lt;strong&gt;&amp;nbsp;Custom list&amp;nbsp;fields&lt;/strong&gt;&amp;nbsp;&lt;/div&gt;
&lt;table align=&quot;center&quot; class=&quot;fields&quot; style=&quot;background-color: #ced5db; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18.149999618530273px; margin-left: 1px; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;&lt;strong&gt;Display Name&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;&quot;&gt;&lt;strong&gt;Internal Name&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;&quot;&gt;&lt;strong&gt;GUID&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;&quot;&gt;&lt;strong&gt;Type&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;ID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;ID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{1d22ea11-1e32-424e-89ab-9fedbadb6ce1}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Counter&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Content Type ID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;ContentTypeId&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{03e45e84-1992-4d42-9116-26f756012634}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;ContentTypeId&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Content Type&lt;/td&gt;&lt;td class=&quot;&quot;&gt;ContentType&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{c042a256-787d-4a6f-8a8a-cf6ab767f12d}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Text&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Title&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Title&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{fa564e0f-0c70-4ab9-b&lt;a class=&quot;htc&quot; href=&quot;livecall:863-0177&quot; mce_href=&quot;livecall:863-0177&quot; style=&quot;color: #0066dd; cursor: pointer; outline: none; text-decoration: initial;&quot;&gt;863-0177&lt;/a&gt;e6ddd247}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Text&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Modified&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Modified&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{28cf69c5-fa48-462a-b5cd-27b6f9d2bd5f}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;DateTime&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Created&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Created&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{8c06beca-0777-48f7-91c7-6da68bc07b69}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;DateTime&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Created By&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Author&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{1df5e554-ec7e-46a6-901d-d85a3881cb18}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;User&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Modified By&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Editor&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{d31655d1-1d5b-4511-95a1-7a09e9b75bf2}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;User&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Has Copy Destinations&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_HasCopyDestinations&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{26d0756c-986a-48a7-af35-bf18ab85ff4a}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Boolean&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Copy Source&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_CopySource&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{6b4e226d-3d88-4a36-808d-a129bf52bccf}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Text&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;owshiddenversion&lt;/td&gt;&lt;td class=&quot;&quot;&gt;owshiddenversion&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{d4e44a66-ee3a-4d02-88c9-4ec5ff3f4cd5}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Integer&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Workflow Version&lt;/td&gt;&lt;td class=&quot;&quot;&gt;WorkflowVersion&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{f1e020bc-ba26-443f-bf2f-b68715017bbc}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Integer&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;UI Version&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_UIVersion&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{7841bf41-43d0-4434-9f50-a673baef7631}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Integer&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Version&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_UIVersionString&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{dce8262a-3ae9-45aa-aab4-83bd75fb738a}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Text&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Attachments&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Attachments&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{67df98f4-9dec-48ff-a553-29bece9c5bf4}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Attachments&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Approval Status&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_ModerationStatus&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{fdc3b2ed-5bf2-4835-a4bc-b885f3396a61}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;ModStat&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Approver Comments&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_ModerationComments&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{34ad21eb-75bd-4544-8c73-0e08330291fe}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Note&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Edit&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Edit&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{503f1caa-358e-4918-9094-4a2cdc4bc034}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Title&lt;/td&gt;&lt;td class=&quot;&quot;&gt;LinkTitleNoMenu&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{bc91a437-52e7-49e1-8c4e-4698904b2b6d}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;&quot;&gt;LinkFilenameNoMenu&lt;/td&gt;&lt;td class=&quot;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Title&lt;/td&gt;&lt;td class=&quot;&quot;&gt;LinkTitle&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{82642ec8-ef9b-478f-acf9-31f7d45fbc31}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Select&lt;/td&gt;&lt;td class=&quot;&quot;&gt;SelectTitle&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{b1f7969b-ea65-42e1-8b54-b588292635f2}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Instance ID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;InstanceID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{50a54da4-1528-4e67-954a-e2d24f1e9efb}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Integer&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Order&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Order&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{ca4addac-796f-4b23-b093-d2a3f65c0774}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Number&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;GUID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;GUID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{ae069f25-3ac2-4256-b9c3-15dbc15da0e0}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Guid&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Workflow Instance ID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;WorkflowInstanceID&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{de8beacf-5505-47cd-80a6-aa44e7ffe2f4}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Guid&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;URL Path&lt;/td&gt;&lt;td class=&quot;&quot;&gt;FileRef&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{94f89715-e097-4e8b-ba79-ea02aa8b7adb}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Path&lt;/td&gt;&lt;td class=&quot;&quot;&gt;FileDirRef&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{56605df6-8fa1-47e4-a04c-5b384d59609f}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Modified&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Last_x0020_Modified&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{173f76c8-aebd-446a-9bc9-769a2bd2c18f}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Created&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Created_x0020_Date&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{998b5cff-4a35-47a7-92f3-3914aa6aa4a2}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Item Type&lt;/td&gt;&lt;td class=&quot;&quot;&gt;FSObjType&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{30bb605f-5bae-48fe-b4e3-1f81d9772af9}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Effective Permissions Mask&lt;/td&gt;&lt;td class=&quot;&quot;&gt;PermMask&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{ba3c27ee-4791-4867-8821-ff99000bac98}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Name&lt;/td&gt;&lt;td class=&quot;&quot;&gt;FileLeafRef&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{8553196d-ec8d-4564-9861-3dbe931050c8}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;File&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Unique Id&lt;/td&gt;&lt;td class=&quot;&quot;&gt;UniqueId&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{4b7403de-8d94-43e8-9f0f-137a3e298126}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;ProgId&lt;/td&gt;&lt;td class=&quot;&quot;&gt;ProgId&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{c5c4b81c-f1d9-4b43-a6a2-090df32ebb68}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;ScopeId&lt;/td&gt;&lt;td class=&quot;&quot;&gt;ScopeId&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{dddd2420-b270-4735-93b5-92b713d0944d}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;File Type&lt;/td&gt;&lt;td class=&quot;&quot;&gt;File_x0020_Type&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{39360f11-34cf-4356-9945-25c44e68dade}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Text&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;HTML File Type&lt;/td&gt;&lt;td class=&quot;&quot;&gt;HTML_x0020_File_x0020_Type&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{4ef1b78f-fdba-48dc-b8ab-3fa06a0c9804}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Edit Menu Table Start&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_EditMenuTableStart&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{3c6303be-e21f-4366-80d7-d6d0a3b22c7a}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Edit Menu Table End&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_EditMenuTableEnd&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{2ea78cef-1bf9-4019-960a-02c41636cb47}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Name&lt;/td&gt;&lt;td class=&quot;&quot;&gt;LinkFilenameNoMenu&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{9d30f126-ba48-446b-b8f9-83745f322ebe}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Name&lt;/td&gt;&lt;td class=&quot;&quot;&gt;LinkFilename&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{5cc6dc79-3710-4374-b433-61cb4a686c12}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Type&lt;/td&gt;&lt;td class=&quot;&quot;&gt;DocIcon&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{081c6e4c-5c14-4f20-b23e-1a71ceb6a67c}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Server Relative URL&lt;/td&gt;&lt;td class=&quot;&quot;&gt;ServerUrl&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{105f76ce-724a-4bba-aece-f81f2fce58f5}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Encoded Absolute URL&lt;/td&gt;&lt;td class=&quot;&quot;&gt;EncodedAbsUrl&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{7177cfc7-f399-4d4d-905d-37dd51bc90bf}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;File Name&lt;/td&gt;&lt;td class=&quot;&quot;&gt;BaseName&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{7615464b-559e-4302-b8e2-8f440b913101}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Computed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Property Bag&lt;/td&gt;&lt;td class=&quot;&quot;&gt;MetaInfo&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{687c7f94-686a-42d3-9b67-2782eac4b4f8}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Level&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_Level&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{43bdd51b-3c5b-4e78-90a8-fb2087f71e70}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Integer&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;&quot;&gt;Is Current Version&lt;/td&gt;&lt;td class=&quot;&quot;&gt;_IsCurrentVersion&lt;/td&gt;&lt;td class=&quot;&quot;&gt;{c101c3e7-122d-4d4d-bc34-58e94a38c816}&lt;/td&gt;&lt;td class=&quot;&quot;&gt;Boolean&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/4413951326343109998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2012/12/sharepoint-fields-internal-names-list.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/4413951326343109998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/4413951326343109998'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2012/12/sharepoint-fields-internal-names-list.html' title='SharePoint Fields Internal Names List'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-8609788910740204744</id><published>2012-11-28T02:07:00.000-08:00</published><updated>2012-11-28T02:07:22.495-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Powershell Script"/><title type='text'>How to extract metadata or details of a DLL IN GAC using Powershell</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi,&lt;br /&gt;
&amp;nbsp;Recently I came across an issue to fetch the details of the DLL in GAC Folder.&lt;br /&gt;
Detail are like, Name , Version Number and TimeStamp using powershell.&lt;br /&gt;
&lt;br /&gt;
I searched a lot in google and blogs and also in MSDN but didnt found any fruitful result.&lt;br /&gt;
Finally after too much to working on this &amp;nbsp;I finally came up with a simple solution.&lt;br /&gt;
&lt;br /&gt;
Here is the script:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
set-variable -option constant -name out -value &quot;dllInventory.csv&quot;&lt;br /&gt;
&quot;Name, Version, Time&quot; | Out-File $out -Append&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Foreach( $file in Get-ChildItem C:\windows\assembly &amp;nbsp;-Recurse -filter &quot;*.dll&quot; )&lt;br /&gt;
{&lt;br /&gt;
if ($file -match &quot;(.*dll)$&quot;)&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;#$temp = &amp;nbsp;$file.Name, $file.VersionInfo.FileVersion, $file.lastwritetime&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;$file.Name + &quot;, &quot; + $file.VersionInfo.FileVersion + &quot;, &quot; + $file.lastwritetime | Out-File $out -append&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{write-host &quot;Not Found&quot;}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
Hope this is help !!&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/8609788910740204744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2012/11/how-to-extract-metadata-or-details-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/8609788910740204744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/8609788910740204744'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2012/11/how-to-extract-metadata-or-details-of.html' title='How to extract metadata or details of a DLL IN GAC using Powershell'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-1427593287659825411</id><published>2012-11-23T20:35:00.001-08:00</published><updated>2012-11-23T20:37:07.379-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="Resource File"/><title type='text'>Iterate in Resource File and fetch value of the matching String</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi Reader,&lt;br /&gt;
&lt;br /&gt;
Recently I came across a requirement where I need to iterate in a resource file added in my ASP.NET Project and fetch the matching value of a specific string.&lt;br /&gt;
Exact requirement goes like this, I have to return a Token Key ( Value ) of a Domain Name ( String Name) in a resx file. If the URL contains the Domain Name which is added in resx file then respective Token Key is fetched.&lt;br /&gt;
So we need to loop in the resx file, look for the containing string and if it matches then returns the value.&lt;br /&gt;
Code goes like this :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #f6f6f6; line-height: 1.1em; margin-bottom: 0.5em; margin-top: 0.5em; padding: 0px;&quot;&gt;&lt;span class=&quot;n&quot;&gt;ResourceManager&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;resourceManager&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ResourceManager&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot; style=&quot;color: #cc9933; font-weight: bold; line-height: 13px;&quot;&gt;&quot;Resources.SiteUrl&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Reflection&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Assembly&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Load&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot; style=&quot;color: #cc9933; font-weight: bold; line-height: 13px;&quot;&gt;&quot;App_GlobalResources&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;));&lt;/span&gt;
                        
                        &lt;span class=&quot;n&quot;&gt;ResourceSet&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;resourceSet&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;resourceManager&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;GetResourceSet&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;CultureInfo&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;CurrentUICulture&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nb&quot; style=&quot;color: #00aaaa; line-height: 13px;&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nb&quot; style=&quot;color: #00aaaa; line-height: 13px;&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
                        &lt;span class=&quot;n&quot;&gt;foreach&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;DictionaryEntry&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;entry&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;resourceSet&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
                        &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
                            &lt;span class=&quot;n&quot;&gt;object&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;resourceKey&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;entry&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Key&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                            &lt;span class=&quot;n&quot;&gt;object&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;resource&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;entry&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Value&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                            &lt;span class=&quot;k&quot; style=&quot;color: #0033cc; font-weight: bold; line-height: 13px;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;returnUrl&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Contains&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;resourceKey&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ToString&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()))&lt;/span&gt;
                            &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
                                &lt;span class=&quot;n&quot;&gt;DomainName&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;resourceKey&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ToString&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
                                &lt;span class=&quot;n&quot;&gt;Token&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;resource&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ToString&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
                            &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
                        &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
                        &lt;span class=&quot;k&quot; style=&quot;color: #0033cc; font-weight: bold; line-height: 13px;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;DomainName&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
                        &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
                            &lt;span class=&quot;k&quot; style=&quot;color: #0033cc; font-weight: bold; line-height: 13px;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;returnUrl&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Contains&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;DomainName&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
                            &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
                                &lt;span class=&quot;n&quot;&gt;returnUrl&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Format&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot; style=&quot;color: #cc9933; font-weight: bold; line-height: 13px;&quot;&gt;&quot;{0}/_layouts/Authenticate.aspx?{1}={2}&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;returnUrl&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Token&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;authCookie&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
                            &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
                        &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
In Above code , ResourceManager Object is created to &lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px; line-height: 18px;&quot;&gt;that looks up resources contained in files with the specified root name in the given assembly.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px; line-height: 18px;&quot;&gt;ResourceSet&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;Stores all the resources localized for one particular culture, ignoring all other cultures, including any fallback rules.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;DictonaryEntry will get the key value pair of each item in the resource file.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;Hope this helps !!&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/1427593287659825411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2012/11/iterate-in-resource-file-and-fetch.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/1427593287659825411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/1427593287659825411'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2012/11/iterate-in-resource-file-and-fetch.html' title='Iterate in Resource File and fetch value of the matching String'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-3892752905665199604</id><published>2012-11-10T12:04:00.001-08:00</published><updated>2013-04-01T22:06:51.953-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Site Template"/><category scheme="http://www.blogger.com/atom/ns#" term="WSP"/><title type='text'>How to Remove Site Template from Custom Tab</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi All,&lt;br /&gt;
&lt;br /&gt;
I have created test site template with name MyTestTemplate and MyTestTemplate2. Since this site is used by many developers and designers.&lt;br /&gt;
Later I found that in the Solution Galllary does not have any such solution with name&amp;nbsp;MyTestTemplate and MyTestTemplate2 but it was still showing in Custom TAB of Site Template.&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/AVvXsEhOseoicAU0SH_rZp_s3RM1aikseqHOwHFCLqVlcg4sPYb76Ut9rpHEKAWNumvrCm608vB-XMJTsXFvep98adZj1DV1f7YXOaVYd89kcg60Ef5dDK0gXi-vaObqf-FzpGKCKhvcbXwZ5uL1/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;98&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOseoicAU0SH_rZp_s3RM1aikseqHOwHFCLqVlcg4sPYb76Ut9rpHEKAWNumvrCm608vB-XMJTsXFvep98adZj1DV1f7YXOaVYd89kcg60Ef5dDK0gXi-vaObqf-FzpGKCKhvcbXwZ5uL1/s320/1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&lt;br /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
After those templates were deleted in the Solutions Gallery, they were still listed in the Custom group of new site templates, and could still be used - maybe because they were still available in the Recycle Bin.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
To hide them from the Create Site options, I restored them from the Recycle Bin, then chose Deactivate from each item&#39;s drop-down menu, and then deleted them again. That solved the problem.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/3892752905665199604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2012/11/how-to-remove-site-template-from-custom.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/3892752905665199604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/3892752905665199604'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2012/11/how-to-remove-site-template-from-custom.html' title='How to Remove Site Template from Custom Tab'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOseoicAU0SH_rZp_s3RM1aikseqHOwHFCLqVlcg4sPYb76Ut9rpHEKAWNumvrCm608vB-XMJTsXFvep98adZj1DV1f7YXOaVYd89kcg60Ef5dDK0gXi-vaObqf-FzpGKCKhvcbXwZ5uL1/s72-c/1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-1980261238061558322</id><published>2012-11-09T23:09:00.000-08:00</published><updated>2013-01-06T11:30:44.132-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint Webparts"/><title type='text'>HOW TO ADD A CALENDAR LIST VIEW WEB PART TO ONET.XML </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi All,&lt;br /&gt;
&lt;br /&gt;
My requirement was to add a calendar in a provisioned page so I found there is a way to set web part properties inside a CDATA section of the view. The Views are generated from the&amp;nbsp;&lt;span style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;Microsoft.SharePoint.WebPartPages.ListViewWebPart.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;I hope this code will help your requirements as well.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #f4f5f7; background-image: url(http://s2.wp.com/wp-content/themes/pub/inove/img/blockquote.gif); background-position: 3px 3px; background-repeat: no-repeat no-repeat; border: 1px dashed rgb(204, 204, 204); color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 5px; margin-top: 5px; padding: 8px 12px 8px 36px;&quot;&gt;&amp;lt;View List=&quot;Lists/PluginCalendar&quot; BaseViewID=&quot;2&quot; Type=&quot;CALENDAR&quot;
       Scope=&quot;Recursive&quot; RecurrenceRowset=&quot;TRUE&quot; WebPartZoneID=&quot;TopWebZone&quot;
       WebPartOrder=&quot;0&quot;&amp;gt;
       &amp;lt;![CDATA[
         &amp;lt;WebPart xmlns=&quot;http://schemas.microsoft.com/WebPart/v2&quot;&amp;gt;
             &amp;lt;Assembly&amp;gt;Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral,
                       PublicKeyToken=71e9bce111e9429c&amp;lt;/Assembly&amp;gt;
             &amp;lt;TypeName&amp;gt;Microsoft.SharePoint.WebPartPages.ListViewWebPart
                       &amp;lt;/TypeName&amp;gt;
             &amp;lt;Title&amp;gt;Calendar of Events&amp;lt;/Title&amp;gt;
             &amp;lt;FrameType&amp;gt;None&amp;lt;/FrameType&amp;gt;
         &amp;lt;/WebPart&amp;gt;
       ]]&amp;gt;
 &amp;lt;/View&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/1980261238061558322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2012/11/how-to-add-calendar-list-view-web-part.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/1980261238061558322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/1980261238061558322'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2012/11/how-to-add-calendar-list-view-web-part.html' title='HOW TO ADD A CALENDAR LIST VIEW WEB PART TO ONET.XML '/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-2951733597652414562</id><published>2012-11-09T23:02:00.003-08:00</published><updated>2012-11-09T23:02:48.834-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SandBox Solution"/><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint Webparts"/><title type='text'>Cannot recognize the XML namespace of this Web Part</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi All,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: Georgia, &#39;Bitstream Charter&#39;, serif; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
When provisioning pages (e.g. default.aspx) using a feature, you can add default webparts using &amp;lt;AllUsersWebPart&amp;gt;&lt;span id=&quot;more-27&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: Georgia, &#39;Bitstream Charter&#39;, serif; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
Keep in mind you have two types of webparts, v2 en v3. When provisioning v2: you should use the following syntax:&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: Georgia, &#39;Bitstream Charter&#39;, serif; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border: 0px; color: #222222; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 15px; line-height: 21px; margin-bottom: 24px; overflow: auto; padding: 1.5em; vertical-align: baseline;&quot;&gt;&amp;lt;AllUsersWebPart WebPartZoneID=&quot;FooterLeft&quot; WebPartOrder=&quot;2&quot;&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;lt;![CDATA[&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;lt;WebPart xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns=&quot;http://schemas.microsoft.com/WebPart/v2&quot;&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
...
&amp;lt;/WebPart&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
]]&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;lt;/AllUsersWebPart&amp;gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border: 0px; color: #222222; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 15px; line-height: 21px; margin-bottom: 24px; overflow: auto; padding: 1.5em; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Georgia, &#39;Bitstream Charter&#39;, serif; font-size: 16px; line-height: 24px; white-space: normal;&quot;&gt;and with v3:&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border: 0px; color: #222222; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 15px; line-height: 21px; margin-bottom: 24px; overflow: auto; padding: 1.5em; vertical-align: baseline;&quot;&gt;&lt;pre style=&quot;border: 0px; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; margin-bottom: 24px; overflow: auto; padding: 1.5em; vertical-align: baseline;&quot;&gt;&amp;lt;AllUsersWebPart WebPartZoneID=&quot;FooterLeft&quot; WebPartOrder=&quot;5&quot;&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;lt;![CDATA[&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;lt;webParts&amp;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;lt;webPart xmlns=&quot;http://schemas.microsoft.com/WebPart/v3&quot;&amp;gt;&amp;nbsp;&amp;nbsp; ...&amp;nbsp;
&amp;lt;/webPart&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;lt;/webParts&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
]]&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;lt;/AllUsersWebPart&amp;gt;&lt;/pre&gt;
&lt;pre style=&quot;border: 0px; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; margin-bottom: 24px; overflow: auto; padding: 1.5em; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-color: white; border: 0px; color: #333333; font-family: Georgia, &#39;Bitstream Charter&#39;, serif; font-size: 16px; line-height: 24px; margin: 0px; padding: 0px; vertical-align: baseline; white-space: normal;&quot;&gt;Look at the difference in attributes of WebPart-tag AND the extra &amp;lt;webParts&amp;gt; tag in the v3-version.&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Georgia, &#39;Bitstream Charter&#39;, serif; font-size: 16px; line-height: 24px; white-space: normal;&quot;&gt;&amp;nbsp;If you add &amp;lt;webParts&amp;gt; around the &amp;lt;webPart&amp;gt;-declaration in the v2-version, you could receive the error:&amp;nbsp;Cannot recognize the XML namespace of this Web Part.&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/2951733597652414562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2012/11/cannot-recognize-xml-namespace-of-this.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/2951733597652414562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/2951733597652414562'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2012/11/cannot-recognize-xml-namespace-of-this.html' title='Cannot recognize the XML namespace of this Web Part'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-2717592146933521228</id><published>2012-10-23T04:46:00.003-07:00</published><updated>2012-10-23T04:46:44.929-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><title type='text'>How to Detach SQL Database if DB is in Single User Mode</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Hi Readers,&lt;br /&gt;
&lt;br /&gt;
I came across a scenario where I need to detach the SQL Database and then take backup of .ldf and .mdf files.&lt;br /&gt;
Copy is not possible unless we do not detach the DB.&amp;nbsp;This single user mode is set by SQL Server inorder to prevent corruption of database tables.&lt;br /&gt;
&lt;br /&gt;
You can set the database back to online mode or say multi user mode by executing following commands.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: verdana,geneva; font-size: x-small;&quot;&gt;exec sp_dboption &#39;&lt;i&gt;your db name&lt;/i&gt;&#39;, &#39;single user&#39;, &#39;FALSE&#39;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: verdana,geneva; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;
If error still persists, then you need to check which your is having connection with the database and find the particular spid&lt;br /&gt;
&lt;br /&gt;
Inorder to find the connected users execute following command.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: verdana,geneva; font-size: x-small;&quot;&gt;select d.name, d.dbid, spid, login_time, nt_domain,  nt_username, loginame from sysprocesses p inner join sysdatabases d on  p.dbid = d.dbid&amp;nbsp; where d.name = &#39;&lt;i&gt;your db name&lt;/i&gt;&#39;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, geneva; font-size: x-small;&quot;&gt;This will fetch the users with their $spid. Kill the spids you see using following command.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, geneva; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: verdana, geneva; font-size: x-small;&quot;&gt;&lt;b&gt;Kill &amp;lt;spid&amp;gt; &lt;/b&gt;&amp;nbsp;: Here &amp;lt;spid&amp;gt; will be some numeric id like 125, so write Kill 125&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, geneva; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: verdana, geneva; font-size: x-small;&quot;&gt;again run the 1st command and you will be back to Multi User Mode.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/2717592146933521228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2012/10/how-to-detach-sql-database-if-db-is-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/2717592146933521228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/2717592146933521228'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2012/10/how-to-detach-sql-database-if-db-is-in.html' title='How to Detach SQL Database if DB is in Single User Mode'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-5762224657584331695</id><published>2012-10-17T06:16:00.001-07:00</published><updated>2012-10-17T06:16:04.909-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint Migration"/><title type='text'>10 common difficulties when upgrading/migrating to SharePoint 2010 : Part 1</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;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; margin-bottom: 1.625em;&quot;&gt;
Hi Readers,&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; margin-bottom: 1.625em;&quot;&gt;
This is the first time I dealt with SP Migration from MOSS 2007 to SharePoint 2010 and have faced lot of issues while working. As per my experience and knowledge, I suggest 10 important points to remember and the difficulties you face while dealing with SP Migration.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; margin-bottom: 1.625em;&quot;&gt;
1.To Upgrade, or to Migrate ??&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;2. Migrating Data&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;3. Migrating from Older Versions&amp;nbsp;of SharePoint&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;4. Dealing with an Oversized Content Database&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;5. Wrong Site Template or Site Definition&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;6. Dealing with Unwanted Data&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;7. Migrating Content Types&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;8. Populating Metadata&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;9. Migrating Files from Outside SharePoint&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;10. Migrating Data from Exchange Public Folders.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/5762224657584331695/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2012/10/10-common-difficulties-when.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/5762224657584331695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/5762224657584331695'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2012/10/10-common-difficulties-when.html' title='10 common difficulties when upgrading/migrating to SharePoint 2010 : Part 1'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-4089437764820562136</id><published>2012-10-17T06:13:00.001-07:00</published><updated>2012-10-17T06:13:05.657-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Powershell Script"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Set the Custom 404 Error Page</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;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; margin-bottom: 1.625em;&quot;&gt;
Hi,&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; margin-bottom: 1.625em;&quot;&gt;
Have you ever tried setting up the Custom Error Page in SharePoint 2010. For long time I was aware of only below such ways of setting up the Custom Error Page.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; margin-bottom: 1.625em;&quot;&gt;
1.) Modify the web.cofig file and set the &amp;lt;customErrors&amp;gt;&amp;nbsp;= &quot;ON&quot;.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; margin-bottom: 1.625em;&quot;&gt;
2.) Either you can set it from IIS.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; margin-bottom: 1.625em;&quot;&gt;
3.) Programmatically set the custom 404 page.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; margin-bottom: 1.625em;&quot;&gt;
Ref :&amp;nbsp;&lt;a data-mce-href=&quot;http://leonidius2010.wordpress.com/2011/06/08/sharepoint-2010-adding-custom-error-page/&quot; href=&quot;http://leonidius2010.wordpress.com/2011/06/08/sharepoint-2010-adding-custom-error-page/&quot; style=&quot;color: #1b8be0; font-style: inherit; line-height: 1.625; text-decoration: none;&quot;&gt;http://leonidius2010.wordpress.com/2011/06/08/sharepoint-2010-adding-custom-error-page/&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; margin-bottom: 1.625em;&quot;&gt;
But a another way is a much smarter way i.e.&amp;nbsp;To configure SharePoint Foundation server or SharePoint Server 2010 to point to a custom 404 error Web page via File System.&lt;/div&gt;
&lt;ol style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; margin: 0px 0px 1.625em 2.5em; padding: 0px;&quot;&gt;
&lt;li style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot;&gt;Log on to the computer that is running SharePoint Server 2010 by using an account that has administrative permissions.&lt;/li&gt;
&lt;li style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot;&gt;In Windows Explorer, locate the following folder:&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\LangID&lt;/li&gt;
&lt;li style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot;&gt;Create the custom HTML file:&lt;ol style=&quot;color: inherit; font-style: inherit; line-height: 1.625; list-style: upper-alpha; margin: 0px 0px 0px 2.5em; padding: 0px;&quot;&gt;
&lt;li style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot;&gt;On the computer that is running SharePoint Server 2010, copy the Sps404.html file to a temporary folder.&lt;/li&gt;
&lt;li style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot;&gt;Rename the Sps404.html file. For example, give the file the following name:&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;Custom404.html&lt;/li&gt;
&lt;li style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot;&gt;Modify&amp;nbsp;the Custom404.html file&amp;nbsp;to suit your needs for a custom 404 error message&amp;nbsp;using an HTML editor.&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;color: inherit; font-style: inherit; line-height: 1.625; margin-bottom: 1.625em;&quot;&gt;
Note : In sps404.html you will notice STSNavigate(&quot;/_layouts/spsredirect.aspx?oldUrl=&quot; + requestedUrl). You need to modify the line as per you requirement , either create another .aspx page and save it in _layouts folder or can directly point to any .aspx file located on the sharepoint library. i.e.&amp;nbsp;STSNavigate(&quot;http://www.mytestsite.com/about/pages/404notfound.aspx&quot;);&lt;/div&gt;
&lt;div style=&quot;color: inherit; font-style: inherit; line-height: 1.625; margin-bottom: 1.625em;&quot;&gt;
4. Copy the Custom404.html file to the %systemdrive% \Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\LangID folder.&lt;/div&gt;
&lt;div style=&quot;color: inherit; font-style: inherit; line-height: 1.625; margin-bottom: 1.625em;&quot;&gt;
Run the following PowerShell commands from the SharePoint 2010 Management Shell:&lt;/div&gt;
&lt;div style=&quot;color: inherit; font-style: inherit; line-height: 1.625; margin-bottom: 1.625em;&quot;&gt;
&lt;strong style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot;&gt;$webapp =&lt;/strong&gt;&lt;strong style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot;&gt;Get-SPWebApplication http://&amp;lt;serverUrl&amp;gt;:&amp;lt;port&amp;gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: inherit; font-style: inherit; line-height: 1.625; margin-bottom: 1.625em;&quot;&gt;
&lt;strong style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot;&gt;$webapp.&lt;strong style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot;&gt;FileNotFoundPage = &quot;Custom404.html&quot;&lt;/strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: inherit; font-style: inherit; line-height: 1.625; margin-bottom: 1.625em;&quot;&gt;
&lt;strong style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot;&gt;$webapp.update()&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: inherit; font-style: inherit; line-height: 1.625; margin-bottom: 1.625em;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/4089437764820562136/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2012/10/set-custom-404-error-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/4089437764820562136'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/4089437764820562136'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2012/10/set-custom-404-error-page.html' title='Set the Custom 404 Error Page'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2595504627063847599.post-3513207809688389519</id><published>2012-10-17T02:35:00.001-07:00</published><updated>2012-10-17T02:35:57.349-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><title type='text'>How to get Public key token in Visual Studio 2010</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;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
I was developing a custom application for SharePoint and needed to assign it with strong name I assigned a strong name to my project. Now was the time to see the token generated for it. I went ahead and tried to drag that assembly to GAC but I got access denied.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
Development machine is Windows Server 2008. Now I tried installing it using GACUTIL but I got the same result even being the administrator of the machine.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
Challenge comes in when you want to know the public key token that has been generated for the project so that you can make modification in web.config file.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
So here is a solution. We will create an external command that will get us the public key token of the project. So that when that command is clicked we get to see result in command window.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
Follow these simple steps. Make sure about spacing and parameters shown here.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
Go to Tools menu and then external tools.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; margin-bottom: 1.625em;&quot;&gt;
&lt;a data-mce-href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPjZqRFB1-sC5UMvE4au0SjQw2Vze_2dxTpKpjxeHI-Q4n3yRhDiQ9xpaqw_R4_NxmiGzT56RmJeiLN6TWXMoBzxrOUqNPgO_7m8b006-IK7uTdFCUUHkDFX2F6h1lHYKsYIp3XAdTlkZY/s1600/GP1.png&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPjZqRFB1-sC5UMvE4au0SjQw2Vze_2dxTpKpjxeHI-Q4n3yRhDiQ9xpaqw_R4_NxmiGzT56RmJeiLN6TWXMoBzxrOUqNPgO_7m8b006-IK7uTdFCUUHkDFX2F6h1lHYKsYIp3XAdTlkZY/s1600/GP1.png&quot; style=&quot;color: #1b8be0; font-style: inherit; line-height: 1.625; text-decoration: none;&quot;&gt;&lt;img alt=&quot;&quot; data-mce-src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPjZqRFB1-sC5UMvE4au0SjQw2Vze_2dxTpKpjxeHI-Q4n3yRhDiQ9xpaqw_R4_NxmiGzT56RmJeiLN6TWXMoBzxrOUqNPgO_7m8b006-IK7uTdFCUUHkDFX2F6h1lHYKsYIp3XAdTlkZY/s320/GP1.png&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPjZqRFB1-sC5UMvE4au0SjQw2Vze_2dxTpKpjxeHI-Q4n3yRhDiQ9xpaqw_R4_NxmiGzT56RmJeiLN6TWXMoBzxrOUqNPgO_7m8b006-IK7uTdFCUUHkDFX2F6h1lHYKsYIp3XAdTlkZY/s320/GP1.png&quot; style=&quot;border: 1px solid rgb(221, 221, 221); color: inherit; cursor: default; font-style: inherit; line-height: 1.625; margin-top: 0.4em; padding: 6px;&quot; width=&quot;225&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
Click Add button on which the dialog opens.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
Set textbox values like this&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
&lt;a data-mce-href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgINBjb6aCdJDCW-7GU5hf_eL9HHssvUDVadVj8LkyDrw7pdIWPMSpqXDcXy3z2gAaMCGoKT020tGOTnVZOFzbYvwsMvM8gxrFV_lOFVnDZylXbMPUvNIsdWjf-B0-r_GRQn5ZoQ0HI0_4B/s1600/GP2.png&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgINBjb6aCdJDCW-7GU5hf_eL9HHssvUDVadVj8LkyDrw7pdIWPMSpqXDcXy3z2gAaMCGoKT020tGOTnVZOFzbYvwsMvM8gxrFV_lOFVnDZylXbMPUvNIsdWjf-B0-r_GRQn5ZoQ0HI0_4B/s1600/GP2.png&quot; style=&quot;color: #1b8be0; font-style: inherit; line-height: 1.625; text-decoration: none;&quot;&gt;&lt;img alt=&quot;&quot; data-mce-src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgINBjb6aCdJDCW-7GU5hf_eL9HHssvUDVadVj8LkyDrw7pdIWPMSpqXDcXy3z2gAaMCGoKT020tGOTnVZOFzbYvwsMvM8gxrFV_lOFVnDZylXbMPUvNIsdWjf-B0-r_GRQn5ZoQ0HI0_4B/s320/GP2.png&quot; height=&quot;311&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgINBjb6aCdJDCW-7GU5hf_eL9HHssvUDVadVj8LkyDrw7pdIWPMSpqXDcXy3z2gAaMCGoKT020tGOTnVZOFzbYvwsMvM8gxrFV_lOFVnDZylXbMPUvNIsdWjf-B0-r_GRQn5ZoQ0HI0_4B/s320/GP2.png&quot; style=&quot;border: 1px solid rgb(221, 221, 221); color: inherit; cursor: default; font-style: inherit; line-height: 1.625; padding: 6px;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
Command text box value is&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\sn.exe&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
Click on OK.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
Now when you again click on Tools menu, you get to see our command.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
&lt;a data-mce-href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2XbTyqkkELhbpEWrmdEfYxIONuefSc-aymqAYVUJb8vPulB1KXXAVYePlkIh8anGnlxuAyFszvKt-i8PytEvxvF9j6ULX_-LIQgLZUsaoR3cWSEXdtGBGxwuVSfTpn45LtAmelFD0Urv5/s1600/GP3.png&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2XbTyqkkELhbpEWrmdEfYxIONuefSc-aymqAYVUJb8vPulB1KXXAVYePlkIh8anGnlxuAyFszvKt-i8PytEvxvF9j6ULX_-LIQgLZUsaoR3cWSEXdtGBGxwuVSfTpn45LtAmelFD0Urv5/s1600/GP3.png&quot; style=&quot;color: #1b8be0; font-style: inherit; line-height: 1.625; text-decoration: none;&quot;&gt;&lt;img alt=&quot;&quot; data-mce-src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2XbTyqkkELhbpEWrmdEfYxIONuefSc-aymqAYVUJb8vPulB1KXXAVYePlkIh8anGnlxuAyFszvKt-i8PytEvxvF9j6ULX_-LIQgLZUsaoR3cWSEXdtGBGxwuVSfTpn45LtAmelFD0Urv5/s320/GP3.png&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2XbTyqkkELhbpEWrmdEfYxIONuefSc-aymqAYVUJb8vPulB1KXXAVYePlkIh8anGnlxuAyFszvKt-i8PytEvxvF9j6ULX_-LIQgLZUsaoR3cWSEXdtGBGxwuVSfTpn45LtAmelFD0Urv5/s320/GP3.png&quot; style=&quot;border: 1px solid rgb(221, 221, 221); color: inherit; cursor: default; font-style: inherit; line-height: 1.625; padding: 6px;&quot; width=&quot;223&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
Click on it and we will get the result in output window and from there you get to know the public key token.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
&lt;a data-mce-href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9ZwpXhTUQmd6U2UJC4Wlu2JSEjkoJCVmYfA05jhRU6C8wtEkrXlaGWuBrJtOhW_4hE6G_29wPHK8tHyXXjEwhFS7503p8vdxHAWHhAosGEi1a087z5A9sTlqjo2sr95mf7FMoVOg9rRUY/s1600/GP4.png&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9ZwpXhTUQmd6U2UJC4Wlu2JSEjkoJCVmYfA05jhRU6C8wtEkrXlaGWuBrJtOhW_4hE6G_29wPHK8tHyXXjEwhFS7503p8vdxHAWHhAosGEi1a087z5A9sTlqjo2sr95mf7FMoVOg9rRUY/s1600/GP4.png&quot; style=&quot;color: #1b8be0; font-style: inherit; line-height: 1.625; text-decoration: none;&quot;&gt;&lt;img alt=&quot;&quot; data-mce-src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9ZwpXhTUQmd6U2UJC4Wlu2JSEjkoJCVmYfA05jhRU6C8wtEkrXlaGWuBrJtOhW_4hE6G_29wPHK8tHyXXjEwhFS7503p8vdxHAWHhAosGEi1a087z5A9sTlqjo2sr95mf7FMoVOg9rRUY/s320/GP4.png&quot; height=&quot;187&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9ZwpXhTUQmd6U2UJC4Wlu2JSEjkoJCVmYfA05jhRU6C8wtEkrXlaGWuBrJtOhW_4hE6G_29wPHK8tHyXXjEwhFS7503p8vdxHAWHhAosGEi1a087z5A9sTlqjo2sr95mf7FMoVOg9rRUY/s320/GP4.png&quot; style=&quot;border: 1px solid rgb(221, 221, 221); color: inherit; cursor: default; font-style: inherit; line-height: 1.625; padding: 6px;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
&lt;br style=&quot;color: inherit; font-style: inherit; line-height: 1.625;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;
I hope this will help while you are developing any custom component in SharePoint.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointstack.blogspot.com/feeds/3513207809688389519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointstack.blogspot.com/2012/10/how-to-get-public-key-token-in-visual.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/3513207809688389519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2595504627063847599/posts/default/3513207809688389519'/><link rel='alternate' type='text/html' href='http://sharepointstack.blogspot.com/2012/10/how-to-get-public-key-token-in-visual.html' title='How to get Public key token in Visual Studio 2010'/><author><name>Ali Yasir</name><uri>http://www.blogger.com/profile/02828457796524446832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKppSLtcsNvfLZfnyV_7ki7iJGARPLCUHrLdIxqtYHqtXdPlmHjuCEXCmCYHtBQe6ALXVSfAD3fzX3FZgjoPRXRgD5doTikhOZFCVDqDLfTCG8CLVo5duIp4ksXBytg8/s220/me.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPjZqRFB1-sC5UMvE4au0SjQw2Vze_2dxTpKpjxeHI-Q4n3yRhDiQ9xpaqw_R4_NxmiGzT56RmJeiLN6TWXMoBzxrOUqNPgO_7m8b006-IK7uTdFCUUHkDFX2F6h1lHYKsYIp3XAdTlkZY/s72-c/GP1.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>