<?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>Ferry Meidianto &#187; how to</title>
	<atom:link href="http://blog.meidianto.com/tag/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.meidianto.com</link>
	<description>/* Living in .NET World */</description>
	<lastBuildDate>Mon, 02 Jan 2012 12:50:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<div id='fb-root'></div>
					<script type='text/javascript'>
						window.fbAsyncInit = function()
						{
							FB.init({appId: null, status: true, cookie: true, xfbml: true});
						};
						(function()
						{
							var e = document.createElement('script'); e.async = true;
							e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
							document.getElementById('fb-root').appendChild(e);
						}());
					</script>	
						<item>
		<title>Umbraco: How to get Media in code-behind</title>
		<link>http://blog.meidianto.com/2010/08/24/umbraco-how-to-get-media-in-code-behind/</link>
		<comments>http://blog.meidianto.com/2010/08/24/umbraco-how-to-get-media-in-code-behind/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 14:03:32 +0000</pubDate>
		<dc:creator>Ferry Meidianto</dc:creator>
				<category><![CDATA[Umbraco]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[how to]]></category>

		<guid isPermaLink="false">http://blog.meidianto.com/2010/08/24/umbraco-how-to-get-media-in-code-behind/</guid>
		<description><![CDATA[To get a media (i.e.: image)&#160; in code-behind you can do it like this. var currentPage = umbraco.presentation.nodeFactory.Node.GetCurrent(); var media = new umbraco.cms.businesslogic.media.Media( &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Convert.ToInt32(currentPage.GetProperty(&#34;[property]&#34;).Value) &#160;&#160;&#160; ); string imageUrl = media.getProperty(&#34;umbracoFile&#34;).Value.ToString();]]></description>
			<content:encoded><![CDATA[<p>To get a media (i.e.: image)&#160; in code-behind you can do it like this.</p>
<p>var currentPage = umbraco.presentation.nodeFactory.Node.GetCurrent();   <br />var media = new umbraco.cms.businesslogic.media.Media(    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Convert.ToInt32(currentPage.GetProperty(&quot;[property]&quot;).Value)    <br />&#160;&#160;&#160; );    <br />string imageUrl = media.getProperty(&quot;umbracoFile&quot;).Value.ToString();</p>
<div class='wpfblike' style='height: 40px;'><fb:like href='http://blog.meidianto.com/2010/08/24/umbraco-how-to-get-media-in-code-behind/' layout='default' show_faces='true' width='400' action='like' colorscheme='light' send='true' /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.meidianto.com/2010/08/24/umbraco-how-to-get-media-in-code-behind/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

