<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mylifeinaminute.com &#187; Development</title>
	<atom:link href="http://www.mylifeinaminute.com/tag/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mylifeinaminute.com</link>
	<description>You can learn a lot in a minute</description>
	<lastBuildDate>Wed, 18 Jan 2012 02:33:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>UrlAction Tokens in SharePoint 2010</title>
		<link>http://www.mylifeinaminute.com/2011/09/02/urlaction-tokens-in-sharepoint-2010/</link>
		<comments>http://www.mylifeinaminute.com/2011/09/02/urlaction-tokens-in-sharepoint-2010/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 19:25:28 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MSDN]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[SharePoint Server 2010]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=1100</guid>
		<description><![CDATA[When creating CustomAction Elements, a number of tokens are available for use within the UrlAction Element in SharePoint 2010. The list of UrlAction tokens in SharePoint 2010 has grown ever so slightly (For a SharePoint 2007 reference, see UrlAction Tokens Of The CustomAction Feature). Tokens Key Available in 2007 Available in 2010 Token Replacement ~site/ [...]]]></description>
			<content:encoded><![CDATA[<p>When creating <a title="CustomAction Element" href="http://msdn.microsoft.com/en-us/library/ms460194.aspx">CustomAction Elements</a>, a number of tokens are available for use within the <a title="UrlAction Element" href="http://msdn.microsoft.com/en-us/library/ms478271(v=office.14).aspx">UrlAction Element</a> in <a href="/tag/sharepoint-2010/" title="SharePoint 2010">SharePoint 2010</a>. The list of <a title="UrlAction Element" href="http://msdn.microsoft.com/en-us/library/ms478271(v=office.14).aspx">UrlAction</a> tokens in SharePoint 2010 has grown ever so slightly (For a <a href="/tag/sharepoint-2007/" title="SharePoint 2007">SharePoint 2007</a> reference, see <a title="UrlAction Tokens Of The CustomAction Feature" href="http://hristopavlov.wordpress.com/2008/12/08/urlaction-tokens-of-the-customaction-feature/">UrlAction Tokens Of The CustomAction Feature</a>).</p>
<h4>Tokens</h4>
<table border="0" cellspacing="0" cellpadding="0" style="width:100%">
<tr>
<th>Key</th>
</tr>
<tr>
<td>Available in 2007</td>
</tr>
<tr  style="background-color: #FFFBCC">
<td>Available in 2010</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" style="width:100%">
<tbody>
<tr>
<th>Token</th>
<th>Replacement</th>
</tr>
<tr>
<td>~site/</td>
<td><a title="SPWeb.ServerRelativeUrl Property" href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.serverrelativeurl.aspx">SPContext.Current.Web.ServerRelativeUrl</a></td>
</tr>
<tr>
<td>~sitecollection/</td>
<td><a title="SPSite.ServerRelativeUrl Property" href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsite.serverrelativeurl.aspx">SPContext.Current.Site.ServerRelativeUrl</a></td>
</tr>
<tr>
<td>{ItemId}</td>
<td><a title="SPListItem.ID Property" href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.id.aspx">SPListItem.ID</a>.ToString() <em>or</em> <a title="Code Snippet: Get the BdcIdentity of All Items in an External List on the Server" href="http://msdn.microsoft.com/en-us/library/ff464434.aspx">SPListItem["BdcIdentity"]</a> (external data source)</td>
</tr>
<tr>
<td>{ItemUrl}</td>
<td><a title="SPListItem.Url Property" href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.url.aspx">SPListItem.Url</a></td>
</tr>
<tr>
<td>{SiteUrl}</td>
<td><a title="SPWeb.Url Property" href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.url.aspx">SPWeb.Url</a></td>
</tr>
<tr>
<td>{ListId}</td>
<td><a title="SPList.ID Property" href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.id.aspx">SPList.ID</a>.<a title="Guid.ToString Method (String)" href="http://msdn.microsoft.com/en-us/library/97af8hh4.aspx">ToString(&#8220;B&#8221;)</a></td>
</tr>
<tr>
<td>{RecurrenceId}</td>
<td><a title="SPListItem.RecurrenceID Property" href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.recurrenceid.aspx">SPListItem.RecurrenceID</a></td>
</tr>
<tr style="background-color: #FFFBCC">
<td>{ListUrlDir}</td>
<td><a title="SPList.RootFolder Property" href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.rootfolder.aspx">SPList.RootFolder</a>.<a title="SPFolder.Url Property" href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfolder.url.aspx">Url</a></td>
</tr>
<tr style="background-color: #FFFBCC">
<td>{Source}</td>
<td>Current Request Url</td>
</tr>
</tbody>
</table>
<h4>Microsoft.SharePoint.SPCustomActionElement.ReplaceUrlTokens</h4>
<pre class="brush: csharp; title: ; notranslate">
internal static string ReplaceUrlTokens(string urlAction, SPWeb web, SPList list, SPListItem item)
{
	if (string.IsNullOrEmpty(urlAction))
	{
		return urlAction;
	}
	if (item != null)
	{
		int d = item.ID;
		string str1 = d.ToString(CultureInfo.InvariantCulture);
		if (list.HasExternalDataSource)
		{
			str1 = item[&quot;BdcIdentity&quot;] as string;
		}
		urlAction = urlAction.Replace(&quot;{ItemId}&quot;, str1);
		urlAction = urlAction.Replace(&quot;{ItemUrl}&quot;, item.Url);
		string recurrenceID = str1;
		if (!string.IsNullOrEmpty(item.RecurrenceID))
		{
			recurrenceID = item.RecurrenceID;
		}
		urlAction = urlAction.Replace(&quot;{RecurrenceId}&quot;, recurrenceID);
	}
	if (web != null)
	{
		urlAction = urlAction.Replace(&quot;{SiteUrl}&quot;, web.Url);
	}
	if (list != null)
	{
		urlAction = &quot;{ListId}&quot;.Replace(Guid guid = list.ID, guid.ToString(&quot;B&quot;));
		if (list.RootFolder != null)
		{
			urlAction = urlAction.Replace(&quot;{ListUrlDir}&quot;, list.RootFolder.Url);
		}
	}
	HttpContext current = HttpContext.Current;
	if (current != null &amp;&amp; current.Request != null)
	{
		string rawUrl = current.Request.RawUrl;
		Uri contextUri = SPAlternateUrl.ContextUri;
		if (!string.IsNullOrEmpty(rawUrl) &amp;&amp; null != contextUri)
		{
			string str2 = null;
			if (!SPUtility.StsStartsWith(rawUrl, &quot;/&quot;))
			{
				str2 = string.Concat(contextUri.GetLeftPart(UriPartial.Authority), &quot;/&quot;, rawUrl);
			}
			else
			{
				str2 = string.Concat(contextUri.GetLeftPart(UriPartial.Authority), rawUrl);
			}
			urlAction = urlAction.Replace(&quot;{Source}&quot;, SPHttpUtility.UrlKeyValueEncode(str2));
		}
	}
	urlAction = SPUtility.GetServerRelativeUrlFromPrefixedUrl(urlAction);
	return urlAction;
}
</pre>
<h4>Reference</h4>
<ul>
<li><a title="CustomAction Element" href="http://msdn.microsoft.com/en-us/library/ms460194.aspx">CustomAction Element</a></li>
<li><a title="UrlAction Element" href="http://msdn.microsoft.com/en-us/library/ms478271(v=office.14).aspx">UrlAction Element</a></li>
<li><a title="UrlAction Tokens Of The CustomAction Feature" href="http://hristopavlov.wordpress.com/2008/12/08/urlaction-tokens-of-the-customaction-feature/">UrlAction Tokens Of The CustomAction Feature</a></li>
</ul>
<p><map name='google_ad_map_1100_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/1100?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_1100_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=1100&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2011%2F09%2F02%2Furlaction-tokens-in-sharepoint-2010%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2011/09/02/urlaction-tokens-in-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updated Guidance: Developing Applications for SharePoint 2010</title>
		<link>http://www.mylifeinaminute.com/2011/04/06/updated-guidance-developing-applications-for-sharepoint-2010/</link>
		<comments>http://www.mylifeinaminute.com/2011/04/06/updated-guidance-developing-applications-for-sharepoint-2010/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 23:39:04 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[SharePoint Server 2010]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Guidance]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=781</guid>
		<description><![CDATA[Microsoft just released an updated version of it&#8217;s guidance for Developing Applications for SharePoint 2010. From Microsoft: Developing Applications for SharePoint 2010 contains guidance documentation, detailed examples, and a reusable class library. These resources are designed to help solution developers and architects make the right decisions and follow proven practices when designing and developing applications [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Microsoft" href="/tag/microsoft/">Microsoft</a> just released an updated version of it&#8217;s guidance for <a title="Developing Applications for SharePoint 2010" href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=64b55569-2168-4545-8b7c-f185b2cf967d">Developing Applications for SharePoint 2010</a>.</p>
<p>From Microsoft:</p>
<blockquote><p>Developing Applications for SharePoint 2010 contains guidance documentation, detailed examples, and a reusable class library. These resources are designed to help solution developers and architects make the right decisions and follow proven practices when designing and developing applications for Microsoft® SharePoint® 2010. The guidance focuses on the building blocks that every developer needs to understand to become an effective SharePoint developer or architect.The guide is provided as a Help (.chm) file and has four core areas: application foundations, execution models, data models, and client models. Eight reference implementations illustrate the core concepts covered in the guide. The reusable class library provides code to help developers build more manageable, flexible, and testable applications. Source code is provided for all reference implementations and for the reusable library. The reference implementations have automated setup scripts to configure the applications.</p></blockquote>
<h4>Reference</h4>
<ul>
<li><a title="Developing Applications for SharePoint 2010" href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=64b55569-2168-4545-8b7c-f185b2cf967d">Developing Applications for SharePoint 2010</a></li>
</ul>
<p><map name='google_ad_map_781_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/781?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_781_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=781&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2011%2F04%2F06%2Fupdated-guidance-developing-applications-for-sharepoint-2010%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2011/04/06/updated-guidance-developing-applications-for-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some Background on CAS Policies</title>
		<link>http://www.mylifeinaminute.com/2008/12/31/some-background-on-cas-policies/</link>
		<comments>http://www.mylifeinaminute.com/2008/12/31/some-background-on-cas-policies/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 16:26:38 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Office]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[Windows SharePoint Services]]></category>
		<category><![CDATA[CAS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint Solution Packages]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=275</guid>
		<description><![CDATA[Reza Alirezaei has a good post on the behind the scenes of CAS policies and SharePoint. Check it out.]]></description>
			<content:encoded><![CDATA[<p><a href="http://blogs.devhorizon.com/reza/" title="Reza Alirezaei's Blog">Reza Alirezaei</a> has a good post on the behind the scenes of CAS policies and SharePoint.
<p><a href="http://blogs.devhorizon.com/reza/?p=785" title="Behind the Scences: CAS in Solution Packages">Check it out.</a></p>
<p><map name='google_ad_map_275_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/275?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_275_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=275&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2008%2F12%2F31%2Fsome-background-on-cas-policies%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2008/12/31/some-background-on-cas-policies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.mylifeinaminute.com @ 2012-02-07 15:20:09 by W3 Total Cache -->
